Tuesday, 12 August 2025

My personal experience with multiple companies

Java Programs

  1. Order the openClose symbolsàLLYODS

InputString:  "}{][(][){](" something like this and arrange them in order like below.

 Output: ()(){}{}[][]

  1. Create linked list and insert and delete the elements
  2. Get highest substring of given stringàTCS

Input: String str = “banana”

Output: “nana”

What are oops concepts?

Difference between compilte time and runtime pholipmorphism

What is volaite keyword

How many ways can thread be created?

Have you worked on multithreading? Executor framework?

Get the employeeIDs by sorting multiple columns, ex: empName and empCity.

 

  1. Reverse string without using any predefined methods
  2. 2nd highest salary using streams reduce
  3. Count the occurances of each char in given string-> most frequestlly asked question in almost all companies
  4. Get unique elements from given string
  5. Get the duplicate elements from given string  (5,6 and 7 all are same question extra condition at the end for 6 and 7)

9.       Java 8 streams scenario based question like below à Persistance Systems.

Get the salary age wise and departmentwise

Highest and lowest salaryies and average salaries by age or department

10.   Java 11, 17 and 21 features. Have you used or find any advantages using latest versions list out them and why?

 

11.   What design patters you used in your daily basis and why? Explain different types of ?

12.   Write singleton design pattern

13.   Write an api using springboot to save and get the employee details?

14.   Real time Differen between Query param and path param? Why?

15.   Different types of API mappings in RESTAPI? Difference between them? Which are idempotent and nonidempotent à GET,POST……

16.   Difference between PUT an Patch

17.   What are 12 factors in microservices?

18.   MIcroserices features/advantages.

19.   Microservies  desing patterns?

20.   Explian each design patern(Saga(choreography and orchestartor) circuite breaker, CQRS)

21.   What is defulat design pattern?

22.   Which design pattern we use while migrating?

23.   What is Strangler desing pattern

24.   What is side car pattern?

25.   Disadvantages of Microserives

26.   How will you handle fault tolerance/failure cases in microserivces?

27.   There is toomuch user interaction like millions of requests per millisecond what will you do?

28.   What is API gateway? How are you handling security?

29.   What will you do if token expires?

30.   K8 architecure?

31.   What is load balancing?

32.   Kubernetes features.

33.   Kafka how to avoid duplicates while publishing and/or consuming

 

 

DB_ SQL Questions: Highest nth salary?

How to optimise db query results?

What is indexing how it works? Advantags and disadvantes of indexing.

What is composite key?


No comments:

Post a Comment