coderz.py

Keep Coding Keep Cheering!

SortedMap Interface in Java

SortedMap is a collection framework interface. It guarantees that the entries are kept in ascending key order. This interface is an extension of the Map interface. TreeMap is the class that implements this interface. Type Parameters: K – the type of keys maintained by this map V – the type of mapped values SortedMap’s parent interface is […]

September 15, 2022 | Java | No comments

Java.lang.Class class in Java

Java includes a class called Class in the java.lang package. In a running Java application, instances of the class Class represent classes and interfaces. Class objects also represent the primitive Java types (boolean, byte, char, short, int, long, float, and double), as well as the keyword void. It has no public builder. The Java Virtual […]

August 29, 2022 | Java | No comments

Interfaces of Java Collection framework

Numerous Interfaces in the Collections framework define the fundamental characteristics of distinct collection classes. Collection Interface: The interface that all classes in the collection framework implement is called the Collection interface. It identifies the methods each collection will contain. To put it another way, the Collection interface creates the basis upon which the collection framework […]

July 21, 2022 | Java | No comments

Interface vs Abstract class

As we all know, abstraction refers to hiding the internal implementation of a feature and only giving the users the functionality. i.e. how it works (showing), what it does (showing) (hiding). Because an abstraction is achieved using both abstract classes and interfaces, Interface and Abstract classes are needed prerequisites. Let’s see the differences between them. […]

June 3, 2022 | Java | No comments

Interface in Java

In Java, an interface is a blueprint for a class. It has abstract methods and static constants. In Java, the interface is a means of achieving abstraction. The Java interface can only have abstract methods, no method bodies. In Java, it is used to achieve abstraction as well as multiple inheritance. Java Interface also represents the […]

June 3, 2022 | Java | No comments

Advertisement