Yearly Archives

Inner class in java

Inner class means one class which is a member of another class. There are basically four types of inner...

Inner class in java

Inner class means one class which is a member of another class. There are basically four types of inner...

Nested Classes in Java

In Java, it is possible to define a class within another class, such classes are known as nested classes....

Nested Classes in Java

In Java, it is possible to define a class within another class, such classes are known as nested classes....

Nested Interface in Java

We can declare interfaces as member of a class or another interface. Such an interface is called as member...

Nested Interface in Java

We can declare interfaces as member of a class or another interface. Such an interface is called as member...

Java Interface methods

There is a rule that every member of interface is only and only public whether you define or not....

Java Interface methods

There is a rule that every member of interface is only and only public whether you define or not....

Comparator Interface in Java with Examples

A comparator interface is used to order the objects of user-defined classes. A comparator object is capable of comparing...

Comparator Interface in Java with Examples

A comparator interface is used to order the objects of user-defined classes. A comparator object is capable of comparing...

Abstract Classes in Java

In C++, if a class has at least one pure virtual function, then the class becomes abstract. Unlike C++,...

Abstract Classes in Java

In C++, if a class has at least one pure virtual function, then the class becomes abstract. Unlike C++,...

Access specifiers for classes or interfaces in Java

In Java, methods and data members of a class/interface can have one of the following four access specifiers. The...

Access specifiers for classes or interfaces in Java

In Java, methods and data members of a class/interface can have one of the following four access specifiers. The...

Access specifier of methods in interfaces

In Java, all methods in an interface are public even if we do not specify public with method names....

Access specifier of methods in interfaces

In Java, all methods in an interface are public even if we do not specify public with method names....

Interfaces in Java

Like a class, an interface can have methods and variables, but the methods declared in an interface are by...

Interfaces in Java

Like a class, an interface can have methods and variables, but the methods declared in an interface are by...