Benefits of using default methods in interfaces (JDK8) in web testing with selenium

Programming language Java doesn’t allow multiple inheritances. Java uses interfaces to simulate multiple inheritances without importing its disadvantages. The cost of this is that method implementation was not possible in interfaces until JDK 8. JDK 8 contains a new feature which allows us to create default implementation for interface methods. Simply just add keyword “default” […]

Read more