Skip to content

Tag Archives: java-interfaces

Prerequisite : Interfaces in Java In Java SE 7 or earlier versions, an interface can have only: Constant variables Abstract methods We can’t provide implementations… Read More
Externalization serves the purpose of custom Serialization, where we can decide what to store in stream.Externalizable interface present in java.io, is used for Externalization which… Read More
Lambda expressions basically express instances of functional interfaces (An interface with single abstract method is called functional interface. An example is java.lang.Runnable). lambda expressions implement… Read More
Like a class, an interface can have methods and variables, but the methods declared in an interface are by default abstract (only method signature, no… Read More
We can declare interfaces as member of a class or another interface. Such an interface is called as member interface or nested interface. Interface in… Read More
In Java, all methods in an interface are public even if we do not specify public with method names. Also, data fields are public static… Read More