Lambda expressions in java 8

One of the key elements of the functional programing is that we can treat functions as objects. In a typical functional language we can have a variable with type of function. The benefits are that we can use functions as: parameter return type variable The type Function in Java is interface with one abstract method. […]

Read more
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