Skip to content

Category Archives: Java

Singleton is a part of Gang of Four design pattern and it is categorized under creational design patterns. In this article, we are going to… Read More
Daemon thread in Java is a low-priority thread that runs in the background to perform tasks such as garbage collection. Daemon thread in Java is… Read More
We can check a file is hidden or not in Java using isHidden() method of File class in Java. This method returns a boolean value… Read More
CyclicBarrier is used to make threads wait for each other. It is used when different threads process a part of computation and when all threads… Read More
Often, when transferring files from the camera folder to a workspace where we would like to analyze the pictures, it becomes difficult to deal with… Read More
This article discusses different ways to reverse a string in Java with examples. Examples:     Recommended: Please try your approach on {IDE} first, before moving on… Read More
Authenticator class is used in those cases where an authentication is required to visit some URL. Once it is known that authentication is required, it… Read More
Prerequisite – JAR file format Whenever a developer wants to distribute a version of his software, then all he want is to distribute a single… Read More
Prerequisite – Collections in Java 1) What is the output of the following program?  Java import java.util.*;   public class priorityQueue {     public static void… Read More
Java doesn’t have pointers; Java has references. Reference: A reference is a variable that refers to something else and can be used as an alias… Read More
Mutation testing is a white-box testing technique, which changes certain portions of the code to reveal possible faults. On a very high level, it is… Read More
Given a string, write a Java function to check if it is palindrome or not. A string is said to be palindrome if reverse of… Read More
Given a number n, find n-th Fibonacci Number. Note that n may be large. Examples: Input : 100 Output : 354224848179261915075 Input : 500 Output… Read More
SwingWorker is an abstract class developed for Swing library of the Java programming language. It is used to performed lengthy GUI interaction tasks in a… Read More
POJO classes POJO stands for Plain Old Java Object. It is an ordinary Java object, not bound by any special restriction other than those forced… Read More

Start Your Coding Journey Now!