java interfaces

Java Interfaces Tutorial

Many think that abstract methods are waste and interfaces are still more waste. If you understand correctly, you find their immense usage. Let us see one on Java Interfaces. Suppose I would like to construct a house. I take the help of Java interfaces as follows.

Observe, the method…

Java Classes and Interfaces

After learning "What is a class in Java?" and "What is Java Application?", let us know the types of classes Java supports. Java supports basically three types of classes. These types are discussed in this tutorial Java Classes and Interfaces. 1. General classes (known as concrete classes) 2. Abstract classes…

Nested Interfaces

Like a class you have seen, an interface can be nested within a) a class or b) another interface. That is, an interface can be declared inside a class body or interface body. That is, an interface can declare within it, classes, interfaces, instance variables and abstract methods. Let us…