0% found this document useful (0 votes)
7 views4 pages

Total Interview Questions

This Document contains all interview questions in it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

Total Interview Questions

This Document contains all interview questions in it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

SQL 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.

emp table no primary key

name dept sal


abc IT 20k
abc it 20k
abc it 20k
abc it 20k
abc it 20k
cde ser 30k

7) what is composite key ?


8) what is primary key ?
9) what is difference between primary key and Unique ?
10) difference between truncate and drop ?
11) what is inner join, cross join, right join, left join ?
12) what is sub quries ?
13) what is aggregator function ?

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 :

1) what is static keyword ?


2) what is string constant pool ?
3) string immutable ?
4) difference between string, string buffer & string builder ?
5) Object class methods ?
6) customized immutable class ?
7) how to clone an object, shallow cloning and deep clonning ?
8) if we have an Employee class, in that employee class we have department class
object as property, and that department class is not in our control, Then how you
make that employee class as immutable ?
9) what is serialization & what is Transient keyword & static keyword ?
10) what is volatile keyword ?
11) what is singleton class ?
12) what are factory methods ?
13) what are bean scopes ?
14) what is intern method in String ?
15) This & Super keyword ?

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 ?

SPRING & SPRINGBOOT:


***********************
1) what is difference between spring & springboot ?
2) what is Composition, Aggregation ?
3) what is Spring IOC ?
4) what is bean life cycle ?
5) what is dependency injection ?
6) @component, @Bean, @Componentscan, @qualifier, @inject, @primary, @configuration
annotations ?
7) what is JDBC template ?
8) What is DataSource ?

9) what are the features of springboot


10) how do you create a springboot project ?
11) @springbootapplication annotation ?
12) what is swagger ?
13) what is AOP ?
14) what is spring actuator?
15) what are profiles ?
16) how do you read properties from application.properties file ?
17) what is transaction management ?
18) spring security?
19) what are maven goals? Difference between clean, install, package ?
20) how do you transfer the data in xml form ?
21) what is global exception handling ?
22) what are stereo type annoations ?
23) difference between @restcontroller & @controller annotation ?
24) how do you consume the rest api's ?
25) difference between @restcontroller, @service, @repository
26) what are diiferennt types of http methods?
27) diff between put & patch
28) what is idempotent in http methods?
29) how you provide the security to your rest api's
30) http status code errors ?
31) how do you check your rest api methods
32) what is slf4j
33) what is log4j
34) how you done the debugging of your application
35) what is spring mvc and its architecture ?
36) what is authentication and authorization ?
37) what is jwt token ?
38) what is spring data JPA repository ?
39) what are jpa lookup methods, and custom quries by using @Query annotation
40) what is pagenation
41) read all annotations in springboot
42) what is resttemplate

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

You might also like