Tip 1 : If you are thorough with core java concepts and any JAVA framework, be it SPRING, HIBERNATE. then you are good to go.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
A coding problem was given. Other questions were based on Java.



[3, 4, 3, 3, 3, 3, 4] is a harmonic array as the maximum of all the elements is 4 and minimum of all the elements is 3. So, the difference between the maximum and the minimum = 4 - 3 = 1.
The idea is to generate all the possible subsequences using the bit masking technique. For each subsequence, check if it is a Harmonious subsequence or not. Take the maximum length of all the possible subsequences.
The steps are as follows:
What are collections in Java?
The Collection in Java is a framework that provides an architecture to store and manipulate the group of objects.
Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion.
Java Collection means a single unit of objects. Java Collection framework provides many interfaces (Set, List, Queue, Deque) and classes (ArrayList
, Vector, LinkedList
, PriorityQueue
, HashSet, LinkedHashSet, TreeSet).
Difference between ArrayList and HashMap in Java
1. ArrayList implements the List interface. HashMap implements the Map interface.
2. ArrayList implements the List interface. HashMap implements the Map interface.
3. ArrayList stores element's value and maintains the indexes for each element. HashMap stores elements key & value pair. For each value, there must be a key associated with HashMap.
4. ArrayList stores only a single object. HashMap stores elements in Key and value pairs.
5. We get the element by specifying the index of it in ArrayList. The elements are being fetched by the corresponding Key in HashMap.
6. The ArrayList maintains the order of the objects they are inserted. HashMap does not provide a guarantee of the order in which they are inserted.
Technical Interview round with questions based on Java and Spring.
What is a REST API?
A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.
Difference between static and final
The main difference between static and final is that the static is used to define the class member that can be used independently of any object of the class. In contrast, final is used to declare a constant variable or a method that cannot be overridden or a class that cannot be inherited.
How to create Immutable class?
There are many immutable classes like String, Boolean, Byte, Short, Integer, Long, Float, Double etc. In short, all the wrapper classes and String class is immutable. To create an immutable class, create a final class that have final data members.
Example :
public final class Employee
{
final String pancardNumber;
public Employee(String pancardNumber)
{
this.pancardNumber=pancardNumber;
}
public String getPancardNumber(){
return pancardNumber;
}
}
public class ImmutableDemo
{
public static void main(String ar[])
{
Employee e = new Employee("ABC123");
String s1 = e.getPancardNumber();
System.out.println("Pancard Number: " + s1);
}
}

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?