Java and Spring Boot
. What is class and object?
3
3
. What is the difference b/w Object oriented programming and
3
2
structural programming?
3
1
. Explain OOPS Concepts in detail with example?
. What is the difference b/w Inheritance and Abstraction? Give me
3
0
general usage of both of them?
2
9
. What is polymorphism? Types of polymorphism?
2
8
. Difference b/w Method overloading and overriding? Write java code to
explain both of them
2
7
. What is Is-A relationship and has-a relationship?
2
6
. What is coupling?
2
5
. What is the difference between List and Set? Array and ArrayList?
. What is the difference between ArrayList and Linked List?
2
4
. Explain about Comparator and Comparable?
2
3
. Explain internal functionality of HashMap?
2
2
. How do you traverse through HashMap, to display all elements? Write
2
1
code for that?
2
0
. Coding question on size of java object
1
9
. You have given a String which has repeated characters. Count and
print how many time each character is repeated in the string?
1
8
. What is exception handling?
1
7
. Explain try-catch, finally, throw and throws?
1
6
. How to create a custom exception? Write code to create a custom
exception.
1
5
. What is the difference b/w exception and error?
1
4
. What are the new features added in Java 8?
. What are functional interfaces and what is the use of it?
1
3
. Explain about lambda expressions with example?
1
2
. Explain Streams API?
1
1
. What are intermediate operations and terminal operations in Streams
1
0
API?
9
. What is the difference b/w filter and map methods in streams?
. What is the difference b/w map and flatMap methods in streams?
8
. Write code to create a list of all employee names who has salary
7
greater than 10000, from a list of employee object using streams?
. How do you debug java streams statement/expression?
6
. What is design pattern? Tell me the design patterns you used till now?
5
. Explain Singleton design pattern?
4
. Tell me about spring framework?
3
. What is dependency injection and Inversion of control?
. What are the bean scopes available in spring and explain each of
2
them?
1
3
6
3
5
. What is the difference b/w singleton and prototype bean scope?
3
4
. What are the types of dependency injections available in spring?
Explain them with code?
. What is Autowiring? What is the annotation used for it?
. You are asked to setup a new spring/spring boot application? Can you
tell me the steps how you will do it?
. What are maven and grade? What is the use of them?
. List me some important annotations available in spring boot
application?
. What does @CompoenentScan annotations used for?
. What is the use of [Link] file in spring/spring boot?
. How do you create a REST api in spring boot?
. Explain me the end to end flow of a REST API creation using spring
boot?
. What is the difference b/w @Controller and @RestController?
. What is a handler method?
. What are the different annotations used in Rest Controller class?
. What is the use of @RequestMapping, @GetMapping, @PostMapping,
@PutMapping and @DeleteMapping?
. How do you pass a value to handler method?
. What is a Service endpoint?
. Explain @Value, @PathVariable, @RequestParam and @Valid?
. What is JSON?
. What is a controller and a service?
. Explain MVC pattern?
. How do you connect to database in Spring and Spring boot? Try to
explain both Hibernate and JPA/
. What are the properties we have to configure in [Link]
to configure a database in spring boot?
. What dependencies we have to add to [Link] or gradle file to use
database in the application?
. How can you configure 2 database in single spring boot application?
. What is an entity class?
. What are the different annotations used in entity class?
. How can you define a composite primary key in JPA?
. Explain @Id annotation?
. How can you specify table name and schema name in entity class?
. What are the different table mappings available in JPA?
. Explain One-to-One and One-to-many mappings?
. What is a repository interface? What is the use of it?
. What is the difference between CRUDRepository, JPARepository and
PagingAndSortingRepository?
. How can you run a custom quest in RepositoryMethod? (Hint: use
@Query)
. How can you run a native quest in RepositoryMethod? (Hint: use
.
@Query with nativequery=true)
. How can we run bulk see operation in spring booting JPA?
. What is Pageable object and what is the use of it?
. How can you pass sorting order to your repository in JPA?
. What is MicroServcies Architecture? What is the use of it?
. How can you secure your Micro Services?
. How can you implement security in REST APIs?
. What is Authentication and Authorization? List the difference b/w both
of them?
. What is OAuth 2?
. What’s is JWT Token? What is the use of it?
. How can you call a REST service inside another REST Service? Explain
me all available options
. Explain RestTemplate in detail?
. What is SQL?
. Can you write a query to get highest salary of an employee from
employee table?
. What is the use of GroupBy and order By in SQL?
. Explain me LIKE function in SQL with example?
. What is index in SQL?
. What is primary key and foreign sky in sql?
. What is Agile?
. What is Epic, Story, task and storypoint?
. How do you estimate story? Hint: planning poker
. What is Scrum?
. What are the event in scrum? Hint: Daily Standup, Spring planning,
Backlog refinement, Sprint retrospective