Comparable interface in java and Comparator interface
In this article, we are going to discuss the Comparable interface in java and the Comparator interface with an example, and their methods. Comparable interface Comparable Interface present in java.lang Package. It is mainly used to sort the arrays or lists of custom objects. It contains only one method compareTo(). Syntex: public int compareTo(Object obj); …. Read More
Java Set Interface
Java Set Interface is the child interface of Collection. It is introduced in the java 1.2 version. If our requirement is to represent a group of individual objects in a single entity, where insertion order is not preserved and duplicate is also not allowed then we can use set. Java Set Interface doesn’t contain …. Read More
Cursors and Types Cursors in Java Collection
In this article, we are learning about cursors in java and their types and each method of their types with programming examples. This article is very important for interview purposes as well as development purposes. Cursors in Java: When we want to get each object one by one from the collection we should go …. Read More
Vector in Java Collection
Java Vector in Collection: Vector is a part of the Java Collection framework since the java 1.2 version. It is implements the List interface, It is found in the java.util package. Vector is the best choice if our frequent operation is retrieval operation. SO if we are want to search and get data from the list …. Read More
List Interface in Java Collection
Introduction In this article, we are going to discuss Java List Interface their types and methods. We can also discuss all methods with programming examples. This topic is very important because in every interview some questions are coming related to this topic. so we need to understand all the things on this topic. List …. Read More
Collection Interface in Java
Introduction: In this article, we are going to discuss Collection Interface in Java their types and methods. We can also discuss all methods with programming examples. This topic is very important because in every interview some questions are coming related to this topic. so we need to understand all the things on this topic. …. Read More
Collections in java
In this article, we are going to discuss Collections in Java uses. What are the advantages of collection in java? Why we need Collections in java and where we use it. The need for Collection: Array: An Array is an indexed collection of a fixed number of homogeneous data elements. Using arrays the main advantage …. Read More
Inner Class in Java
Introduction Inner class in Java means a class is declared inside another class that type of class is called inner classes. Inner class in Java introduced in 1.1 version as part of “EventHandling” to resolve GUI bugs. Inner classes are very powerful features and also so many benefits that’s why nowadays programmers start using regular …. Read More
Garbage Collection in java
In this article, we are going to discuss Garbage Collection in java and the Advantages of Garbage Collection in java. Advantages of Garbage Collection in java. The ways to make an object eligible for GC The methods for requesting JVM to run GC Finalization We can discuss all method for calling GC This topic is …. Read More
Class loaders in java
In this article, we are going to discuss Class loaders in java types of ClassLoaders. We can also discuss how the classloader works. Class loaders in java are very important because sometimes this topic comes in an interview. and they are using about how classloader is working and how many ways we can upload class …. Read More