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 in a limited space. Here, In this article, we will learn how to generate a QR code using Java Spring boot. Create a Java spring
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.
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 arrays. Here’s an image of a simple array of size 4, containing elements (1, 2, 3 and 4). The following are the two types of
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. In traffic light, depending upon the traffic, the colors will be given priority. Difference b/w priority queue and normal queue: In a queue, the first-in-first-out rule is

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 = str1.intern(); System.out.println(str3 == str2); //true As you can see, both str1 and str2 have the same content, but they are not equal initially. We then
What is your understanding of what are restful web services? Just like SOAP(Simple Object Access Protocol), which is used to develop we services by XML. Restful web services use web protocol (http). Important aspects of Restful: Resources Request Header Request Body Response Body Status Codes Name the protocol which is used by Restful? Restful web

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 Thread { // Atomic counter Variable AtomicInteger count; // Constructor of class Counter() { count = new AtomicInteger(); } // method which would be called

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 allowing us to treat actions as objects. It is a short block of code and it’s similar to methods, but they do not need a

Caching is a mechanism to enhance the performance of the system. It’s a buffer memory that lies between app & DB. Cache memory stores the recently used data items in order to reduce the number of DB hits as much as possible. First Level Cache : First level cache is associated with session.The scope of

A queue means a message goes to one and only one possible subscriber. A topic goes to each and every subscriber. Topics are for the publisher-subscriber model, while queues are for point-to-point. A JMS topic is the type of destination in a 1-to-many model of distribution.