1.
Memory Management
1.1. Heap and stack memory space, and how they work.
1.2. Type of garbage collectors
2. Exception handling
2.1. Types of exceptions in java
2.2. Try with resource
3. Strings
3.1. Different between creating string using string literal and string buffer
3.2. Explain String class
4. Core Java
4.1. Difference between protected and default access modifiers
4.2. Abstraction
4.3. Method Hiding
4.4. SOLID principles
4.5. What is an Immutable class? Have you used this in any project?
4.6. What is singleton class
5. Threading
5.1. Executor framework in java
5.2. Volatile keyword
5.3. Race condition
6. Stream
6.1. For a given array, collect squared values of each and find out the average of
squared values which are greater than 100.
6.2. Intermediate and terminal operation in stream
6.3. Functional Interface(2)
6.4. Why do we have default methods?(2)
6.5. Given a sentence, concatenate the first letter of each word.
6.6. We have a stream like ‘aabbccdefff” return each unique char with its frequency in
a single string. A2b2c2d1e1f3
6.7. You have a list of object cars. Each car will be for one market. I want to fetch the
cars based on each market. Eg. for india market cars will be x,y,z
7. Coding
7.1. Given a string s containing ‘(‘ ‘{‘ ‘[‘, print true if the open bracket has close
brackets.
7.2. Write a method that takes 2 inputs as lists and returns a list with the sum of the
numbers of the list.
7.3. Write a function that extracts all integer numbers from a string and returns their
sum. Eg. abc123sjkj-54jkj11. See 54 is negative.
7.4. We have a string that removes non alphabet characters and empty spaces from
that string.
8. Collections
8.1. Collection framework hierarchy
8.2. Explain hash map internally
8.3. Contract between equals and hash code
8.4. Difference between hash set and linked hashset and treeset
9. Testing
9.1. Testing pyramid
9.2. Test containers
10. SQL
10.1. ACID properties
10.2. View in database
10.3. Indexing in sql
10.4. We have two tables, one customer and another order. One customer can have
many orders. The task is to get the list of customers who do not have any orders.
Do Not use subquery.
11. Spring Boot
11.1. What is dependency injection and different types of dependency injections in
spring boot.
11.2. Difference between path variable and query param
11.3. How to handle exception handling in spring boot.
12. Spring Security
12.1. Lets say there are 5 api, those 5 api can be accessed by role ADMIN, how will
you do it.
12.2. How will you check whether he is admin or not?
12.3. How you handle the authentication and authorization in your spring boot
application.
13. Microservices
13.1. What is Service Discovery
13.2. What is circuit breaker
14. File Handling
14.1. In a small microservice, I want to process a file and do some processing and
pass the data to the UI. How to do this in spring boot.
15. Project
15.1. How is the current architecture of your project?
15.2. What design patterns do you use in your current project?
16.