Skip to content

Category Archives: Java

Java is the most popular programming language and widely used programming language. Java is used in all kinds of applications like mobile applications, desktop applications,… Read More
TreeMap in Java is used to implement Map interface and NavigableMap along with the AbstractMap Class. The map is sorted according to the natural ordering… Read More
Date class is present in both java.util package and java.sql package. Though the name of the class is the same for both packages, their utilities… Read More
java.lang.management.ThreadInfo class contains methods to get information about a thread. This information includes: Thread ID Thread Name State of the Thread Stack trace of the… Read More
public class InetAddress extends Object implements Serializable: The java.net.InetAddress class provides methods to get the IP address of any hostname. An IP address is represented… Read More
DoubleBuffer holds a sequence of double values to be used in an I/O operation. The DoubleBuffer class provides the following four categories of operations upon… Read More
Unlike arrays, linked list elements are not stored at a contiguous location; the elements are linked using pointers. In this post, methods to insert a… Read More
JSON stands for JavaScript Object Notation. It is one of the widely used formats to exchange data by web applications. JSON arrays are almost the… Read More
Since Vector class and ArrayList class both are part of Java Collections, ie Collection framework, so both of these classes can use methods available to… Read More
HashMap<Key, Value> provides the basic implementation of the Map interface of Java and import java.util.HashMap package or its superclass. HashMap stores the data in (Key,… Read More
When two binary strings are added, then the sum returned is also a binary string. Example: Input : x = "10", y = "01" Output:… Read More
LCM (i.e. Least Common Multiple) is the largest of the two stated numbers that can be divided by both the given numbers. Example: LCM of… Read More
GCD (i.e. Greatest Common Divisor) or HCF (i.e. Highest Common Factor) is the largest number that can divide both the given numbers. Example: HCF of… Read More
This class is used to bind together the supplied class and class file bytes in a single ClassDefinition object. These class provide methods to extract… Read More
ByteBuffer holds a sequence of integer values to be used in an I/O operation. The ByteBuffer class provides the following four categories of operations upon… Read More

Start Your Coding Journey Now!