Package modernfeatures.java9
Class PrivateInterfaceMethodsDemo
java.lang.Object
modernfeatures.java9.PrivateInterfaceMethodsDemo
Demonstrates the use of private and private static methods in interfaces (Java 9+).
Private methods in interfaces allow code reuse and organization within default and static methods, without exposing helper logic to implementers or users of the interface.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrivateInterfaceMethodsDemo
public PrivateInterfaceMethodsDemo()
-
-
Method Details
-
main
-