Total 4 rounds : 2 virtual and 2 onsite rounds
1st round
- Linked List concepts and reverse a linked list
- Balanced paranthesis
- Some questions of Spring Boot & Java
2nd Round
- SOLID Principles
- Inversion of Control vs Dependency Inversion
- int five = 5;
int two = 2;
int total = five + (five > 6 ? ++two : --two);
Whats the value of total ?
- Lambda Functions
- Find the sum of elements in list using Java 8 Streams
- Find the product of elements in list using Java 8 Streams
- Given a list, sort and get the first element using Java 8
- Singleton class and Implement single
- public static void main(String... args) {
String car, bus = "petrol";
car = car + bus;
System.out.println(car);
}
- volatile keyword
- Runnable vs callable
- public class Test {
public static void main(String[] args) {
for(int i=0; 0; i++) {
System.out.println("Hello World!");
}
}
}
13.public class Code {
public static void main(String[] args)
{
if (true)
break;
}
}
- Java Hashmap internal working and how collisions are handled
- Filter Interface vs Intercept or Interrupt interface (Don't remember this question)
- Composition vs Aggregation vs Association
- You are given the head of a linked list. Delete the middle node, and return the head of the modified linked list
- String Pool Concept
STATUS : Got Rejected. No Feedback, Tried to contact HR, they Ghosted me