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

Core and Advance Java Interview Questions

The document contains 160 interview questions related to Java programming concepts like OOPs, data types, variables, constructors, JVM, packages, exceptions, collections, threads, JDBC, servlets, JSP, Spring, Hibernate and SQL. The questions cover topics such as static and non-static variables, primitive vs non-primitive data types, constructors, OOPs concepts, SOLID principles, JDK vs JRE vs JVM, anonymous classes, garbage collection, memory in Java, classes vs methods vs objects, return vs return values, this keyword, packages, type casting, interfaces vs abstract classes, abstract keyword, polymorphism, marker interfaces, Java 8 features, access modifiers, changing
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
196 views4 pages

Core and Advance Java Interview Questions

The document contains 160 interview questions related to Java programming concepts like OOPs, data types, variables, constructors, JVM, packages, exceptions, collections, threads, JDBC, servlets, JSP, Spring, Hibernate and SQL. The questions cover topics such as static and non-static variables, primitive vs non-primitive data types, constructors, OOPs concepts, SOLID principles, JDK vs JRE vs JVM, anonymous classes, garbage collection, memory in Java, classes vs methods vs objects, return vs return values, this keyword, packages, type casting, interfaces vs abstract classes, abstract keyword, polymorphism, marker interfaces, Java 8 features, access modifiers, changing
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

INTERVIEW QUESTION

Rabindra Kumar Verma


1) What is static, non-static/instance, local variables?
2) Difference between primitive and non-primitive data types?
3) What is Constructors and its types and need of constructor?
4) What is OOPS concept? Explain
5) What is SOLID principle with advantages?
6) Difference between JDK, JRE and JVM?
7) What is anonymous class?
8) What is Garbage collector and need of garbage collector in java?
9) Explain Types of memory in java and explain each?
10) What are Class, Method and Object in java?
11) Difference between return and return value?
12) What is this keyword?
13) What are packages in java?
14) What is type casting and its type explain each?
15) What is interface and abstract class and when to use interface and when to use abstract class
with example?
16) What is abstract keyword?
17) What is run time polymorphism?
18) What are marker interface and its uses and need?
19) What are java 8 features explain each?
20) What are access modifier explain each?
21) Can we change the visibility of method while overriding? If yes then what is condition in it?
22) What are Scanner class and its uses?
23) What is for loop?
24) Difference between While and Switch statement?
25) Difference between continue and break statement?
26) Explain main method in java?
27) What is System.out.println()? Explain
28) What is Array? And its type
29) What is Serialization with example?
30) What is Deserialization with example?
31) What is transient keyword?
32) What is volatile keyword?
33) What is final, finally and finalize in java?
34) What is var type?
35) What is string tokenizer?
36) Can we overload static method in java?
37) Can we override static method in java?
38) What is super most class in java?
39) What is data hiding and how to achieve?
40) What is Static block in java?
41) What is Non-Static block in java?
42) What is Super keyword in java?
43) Difference between This and Super keyword?
44) What are Exception in java and its type explain each?
45) How many ways to handle exception in java explain each?
46) Explain exception hierarchy?
47) Can we write finally without catch block?
48) Difference between throws and throw?
49) What is exception propagation?
50) Explain Checked and unchecked exception?
51) What are command line arguments?
52) What is thread?
53) What is Demon thread?
54) What is multithreads?
55) Difference between thread join and sleep method?
56) Process to create thread and which is best and why?
57) What is thread scheduler?
58) Explain about priority of thread?
59) Explain wait, notify and notify all?
60) What is thread pool?
61) What are executor services?
62) Difference between runnable and callable<T> interface?
63) Disadvantage of thread?
64) Explain thread life cycle?
65) What is Synchronization?
66) What is Synchronized keyword?
67) What is String in java and why String is Immutable in java?
68) Difference between String, stringbuffer and stringbuilder?
69) What do you mean by mutable and immutable?
70) How to make a class immutable with example?
71) Why java is platform independent language?
72) Why java is not pure object oriented language?
73) Difference between .equals method and == operator in java”?
74) Why pointers are not used in java?
75) What is singleton class and how we can make a class singleton?
76) What is Collection framework?
77) What are wrapper classes?
78) What is tokenizer?
79) What is cloning?
80) What is hash code and equal method?
81) Why to override hashcode and equal method?
82) What is JDBC and write code of JDBC?
83) Difference between Collection and Collections?
84) Explain Collection hierarchy?
85) Explain List, Set and Queue?
86) Difference between ArrayList vs LinkedList and Vector?
87) Explain HashTable and HashMap?
88) Internal working of HashMap?
89) What is Collision and how to overcome this?
90) Difference between synchronized collection and concurrent collection?
91) Difference between comparable and comparator?
92) Difference between Enumeration and Iterator?
93) What is Tenary operator with example?
94) What are unary operators and its example?
95) What are association and its type?
96) Difference between Iterator and ListIterator?
97) What is Fail fast and fail safe?
98) What is Servlet?
99) Difference between Doget and Dopost?
100) What is InterServlet Communication?
101) What is Request Dispatcher?
102) Difference between ServletConfig and ServletContext?
103) Explain Servlet Life cycle?
104) What are Session Variables and its type?
105) What is JSP? And its tag?
106) Explain JSP life cycle?
107) What is JSTL tag?
108) What are implicit object?
109) What is HTML and feature of HTML5?
110) Explain MVC architecture?
111) Difference between spring and SpringBoot?
112) What is Web Services and its type?
113) How to expose and consume web services?
114) Difference between SOAP and RESTFull web services?
115) What is POSTMAN?
116) What are Http methods explain each?
117) Difference between micro services and monolithic applications?
118) What is Maven?
119) What is Spring Initilizer?
120) What is Unit testing?
121) What is Junit?
122) What is JPA?
123) What is Hibernate JPA?
124) What are Spring IOC and Its type?
125) What is spring security?
126) What are JPA annotations used in your project explain each
127) What are spring boot annotation used in your project explain each?
128) What is Dependency injection?
129) Types of Autowire and explain each?
130) Difference between @Controller and @RestController?
131) Difference between @Autowiring and @Bean?
132) What is @Qualifier and @Services and @Component and @Value and @Query ?
133) Explain @SpringBootApplication?
134) Difference between BeanFactory and ApplicationContext?
135) Difference between JPA and Hibernate?
136) Explain advantage of Hibernate over JDBC?
137) What is Session in hibernate?
138) What are roll back and commit?
139) Session management in spring boot?
140) How to create session object?
141) Difference between session and sessionFactory?
142) Difference between get and load method of hibernate?
143) What is caching and hibernate and explain 1st level and 2nd level caching?
144) What are Core interface of hibernate?
145) What is Jenkins?
146) What is JERA?
147) How to read application.properties in any class?
148) What are response codes of POSTMAN? 200/201/204/400/401/403/404/405/500/503
149) Explain Session Tracking System
150) Explain types of spring bean scope?
151) What is Actuator in spring boot?
152) What is Starter tag in spring boot?
153) Types of hibernate mapping explain each?
154) Types of inheritance in hibernate?
155) Difference between Drop and Truncate?
156) Write SQL basic query?
157) Find 2nd max salary from employee table?
158) What is Primary key and foreign key?
159) What are joins in SQL explain each?
160) Explain SDLC model?
161) Explain about Agile methodology?

You might also like