Package in Java

A package in Java is used to group a set of related classes and interfaces. In a big Java application containing hundreds or thousands of individual classes, grouping related classes and interfaces into packages helps to keep things organized. Package structure in Java Packages follow the same structure as directories…

Continue reading

Method Reference in Java

In the post Lambda expression in Java we have already seen how Lambda expression provides an instance of functional interface and implements the abstract method of the functional interface. Though sometimes, a lambda expression is used just to call an existing method. In those cases you can refer to the…

Continue reading