An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, hence inheriting the abstract methods of the interface.
Datatypes defines the type of data that a variable can store .
Based on the data type of a variable, the operating system allocates memory and decides what can be…
Variable is a name of memory location. In java , there are three types of variables available : local, instance and static.Variable is name of reserved area allocated in memory.