Total Interview Questions
Total Interview Questions
********************
1) how to find the 4th & 5th highest salary from an Employee table ?
2) what is unix, views, projections ?
3) question on like operator ?
4) quetsion on distinct ?
5) question on grouping by ?
6) In a table there is no primary key, there is 5 duplicate datas and one unique
data, then delete 4 duplictae data.
HIBERNATE:
***************************
1) Tell me difference between JDBC, Hibernate & JPA ?
2) whay you are using JPA repository instead of Hibernate ?
3) what is abbrevation of JPA ?
4) difference between GET & LOAD method ?
5) difference between sessionfactory and session ?
6) what is first level cache ?
7) what is second level cache ?
8) what is criteria & restrictions ?
9) what is eager and lazy loading ?
10) @entity, @ID, @generatedvalue, @onetoone, @manytomany, @onetomany
11) how do you divide a class into multipe tables in database ?
12) ddl auto=true/false
13) what is Transient state, Detached state, Persistent state ?
COLLECTIONS:
********************
1) Tell about Collection heirarchy ?
2) How you make a List for Read operations only?
3) what will happen to an arraylist if you add data when iteration is going on ?
4) what is collections class ?
5) what data structure(List, Set, Map) you have used in your project?
6) when an Employee object is added to Hashmap, then if you change any value of
employee property and you fetch that data from Map then what will happen ?
7) To what extent an Arraylist can store the data ?
8) what is difference between Arraylist and Linkedlist?
9) what is difference between Hashset and LinkedHashset ?
10) what is difference between hashmap and hashtable and ConcurrentHashmap?
11) Internal working of Hashmap?
12) Internal working of ConcurrentHashmap?
13) what is set?
14) what is map?
15) what is list?
16) difference between comparable and comparator ?
17) what is treeset?
18) what is failfast and failsafe?
19)
20)
EXCEPTIONS:
****************
1) Exception heirarchy ?
2) what is class not found exception ?
3) what is CircularBeanReferenceException ?
4) what is illegal thread state exception ?
5) how do you handle the exception ?
6) difference between run time and compile time exception ?
7) what is try with resource ?
8) what is finally block, Final & Finalize ?
9) how to create custom exceptions ?
10) difference between throws and throw ?
11) what exceptions have you faced in your project ?
12) what is global exception handling in spring boot?
13) what is the use of multiple catch blocks ?
OOPS:
*****************
1) what is oops priciple ?
2) how you implemented oops in your project ?
3) where have you used Interface in your project?
4) where have you used Abstract class in your project ?
5) what is difference between Interface and Abstract class ?
6) when do you use Inetrface and Abstract class ?
7) what are the changes brought to Interface after java 1.8 ?
8) How do you call the static method of an Interface ?
9) How do you call the Default method of an Interface ?
10) what is inheritance, & different type of inheritance, Does java support
multiple inheritance ?
11) when a class implements two interfaces at a time having same abstract method,
then what will happen and class will provide the implementation to which method ?
12) question on parent reference can hold sub class object ?
13) what is method overloading and over riding with real time examples ?
14) already we have abstract class then what is the use of Interface ?
15) what is encapsulation ?
16) what is abstraction ?
17) can we override the static methods or not ?
18) what is polymorphism with real time example ?
19) what are different types of Access modifiers, what is the use of protected
keyword ?
MISCELLANIOUS QUESTIONS :
JAVA 1.8:
*************
1) which version of java you have used in your project ?
2) what are the important features of Java 1.8 ?
3) currently which version of java released in the market ?
4) what is ananymous class ?
5) what is functional interface and their uses ?
6) what is Stream API ?
7) what is lambda expression and use ?
8) what is method reference ?
9) what are intermediate methods and Terminal methods ?
10) what is Optional class in java 1.8 and what is the use of it ?
11) name some functional interfaces ?
12) what is the use of static and default methods in interface ?
13) what are the DATE concepts in java 1.8 ?
14) what is difference between Map and FlatMap ?
15) what is parallel stream ?
16) logical programs on Java 1.8 ?
17) what is Marker interface ?
MICROSERVICES:
***************
1) difference between monolithic and microservices ?
2) what is microservices architecture ?
3) what design principles you have implemented in microservices
4) what are 12 factors in micrservices ?
5) what is ELK ?
6) Feign client
7) Rest template
8) how to connect one microservice to another microservice ?
9) how to check your microservice application up or down
10) what is fallback(circuit breaker)
11) what is scaling