Skip to content

Category Archives: Java Programs

Basic File Attributes are the attributes that are associated with a file in a file system, these attributes are common to many file systems. In… Read More
Given a connected graph, the task is to find the minimum number of edges to cut/remove to make the given graph disconnected. A graph is… Read More
Double hashing is a technique in an open addressing scheme. and there is the ordinary hash function. In an open addressing scheme, the actual hash… Read More
A trie isn’t something CS students might have spent that much time on in college but it’s really very important for interviews. A trie is… Read More
An alphanumeric value i.e. the sequence of letters and numbers that uniquely defines the contents of a file is called a checksum (often referred to… Read More
An unexpected event occurring during the program execution is called an Exception. This can be caused due to several factors like invalid user input, network… Read More
A lock may be a more flexible and complicated thread synchronization mechanism than the standard synchronized block. A lock may be a tool for controlling… Read More
Validating phone numbers is a common prerequisite in today’s web, mobile, or desktop applications, but Java does not have an integrated method for carrying out… Read More
Enumerations serve the purpose of representing a group of named constants in a programming language. Enums are used when we know all possible values at… Read More
As we know, there are basically two types of sorting technique in Java: First is internal sorting i.e that uses predefined sorting method ascending order… Read More
Universally Unique Identifiers (UUIDs) are also known as Globally Unique Identifier(GUID) which are 128-bit numbers and are unique on all local systems they are created… Read More
Unlike the List classes like ArrayList or a LinkedList, the TreeSet class does not allow accessing elements using the index. There are no direct methods… Read More
Given an undirected graph, the task is to check if the given graph is connected or not using DFS. A connected graph is a graph… Read More
PrintStateReason API in Java is used to access the current state data of a printer device, such as whether the printer is connected or now,… Read More
Basically as the name suggest that 3-Way Radix Quicksort is a combination of both radix and 3-way quicksort. It is a hybrid sort which is… Read More