Skip to content

Category Archives: Java

The statement interface is used to create SQL basic statements in Java it provides methods to execute queries with the database. There are different types… Read More
Threads in java are the lightweight sub-processes that can be created by the user. It is used to perform complicated tasks in the background without… Read More
Package in Java is a mechanism to encapsulate a group of classes, sub-packages, and interfaces. All we need to do is put related classes into… Read More
Generic means parameterized types introduced in java5. These help in creating classes, interfaces, methods, etc. A class or method which works on parameterized type known… Read More
Event Handling in java Using Action listeners is probably very easy to implement, but the problem arises when you are having many actionlistener in one… Read More
TreeMap class is like HashMap. TreeMap stores key-value pairs. The main difference is that TreeMap sorts the key in ascending order. TreeMap is sorted as… Read More
Typecasting is the assessment of the value of one primitive data type to another type. In java, there are two types of casting namely upcasting… Read More
Association is the relation between two separate classes which establishes through their Objects. Composition and Aggregation are the two forms of association. In Java, a… Read More
Problem Statement: Given a String extract the substring enclosed in single quotes (‘) using Java Regex.  Java regex is an API for pattern matching with… Read More
A Patricia Trie or prefix Tree or radix Tree is an ordered structured tree, which takes the applications of usually the data it stores. A… Read More
ConcurrentLinkedDeque class in Java is an unbounded concurrent deque that stores its elements as linked nodes where each node contains the address of the previous… Read More
The java.lang.ClassCastException is one of the unchecked exception in Java. It can occur in our program when we tried to convert an object of one class type into… Read More
A LinkedList is a linear data structure, in which the elements are not stored at contiguous memory locations. For converting a linked list to a… Read More
The Java.util.LinkedList.removeFirst() method is used to remove the first element from the LinkedList.  The Java.util.LinkedList.removeLast() method is used to remove the last element from the… Read More
A PriorityQueue is a linear data structure in which the elements are ordered according to their natural ordering or by some custom comparator provided at… Read More

Start Your Coding Journey Now!