Java
-
Roadmap to learning Data Structures and Algorithms (DSA)
Introduction : We all know that Data structure algorithms are backbone of every concept that we use. `One of the most common applications of data structure is Search & Sort…
-
How to Generate QR Code in Java Spring Boot
As we know that QR Codes are becoming the most widely recognized 2D barcodes worldwide. The big benefit of the QR code is that we can store large amounts of data…
-
Data Structure Problems
Reverse Array : Reverse the given array by using temporary variable. Output : Rotate an array : Rotate the given array with respect to the number of times.
-
Commonly used Data Structures : Java
Arrays Stacks Queues Linked Lists Trees Graphs Hash-table Arrays: An array is the simplest and most widely used data structure. Other data structures like stacks and queues are derived from…
-
Priority Queue
Priority Queues are used to short heaps. Priority queues are used in operating system for load balancing and interrupt handling. Priority queues are used in huffman codes for data compression.…
-
Java : Interesting and Cool Tricks
1) Java String : concat() vs + operator for concatenation intern() private String str1 = new String(“Hello”); private String str2 = “Hello”; System.out.println(str1 == str2); //false private String str3 =…
-
Java Concurrency : Atomic Wrapper
Java provides atomic classes such as AtomicInteger, AtomicLong, AtomicBoolean and AtomicReference. Objects of these classes represent the atomic variable of int, long, boolean, and object reference respectively which can be atomically updated. class Counter extends…
-
Java 8 Features
Java 8 provides the following features: Lambda Expression Method Reference Default Methods Functional Interface Optional Class String Joiner Stream API Concurrency Enhancements Lambda Expression: A new feature in java 8…
-
Singleton class in Java and how can we make a class as singleton?
Singleton class is a class whose only one instance can be created at any given time in one JVM. Make constructor as private, so that instance cannot be created outside…












