Java Topics To Cover in Interviews
Java Topics To Cover in Interviews
Core Java
1. Fundamentals of OOPS
2. Classes, Objects and Methods
3. Arrays, Strings and Vectors
4. Interfaces, Packages
5. Threading
6. Exception Handling
7. Applets
8. File Handling
9. Serialization
10.Collections
11.JDBC
Advanced Java
1. Generics
2. Reflection
3. Sockets
4. Design Pattern
5. JSP
6. Servlets
7. Java Beans
8. Session Management
9. RMI
10.Hibernate
11.Spring
12.Struts
13.Web Services
Java questions
1. Explain about OOPS concepts
a. What is polymorphism
The ability to define more than one function with the same name is called
Polymorphism. 2 types: overloading and overriding
What is inheritance
What is multiple inheritance and whether java supports it?
What is abstraction
What is encapsulation
What is association (is a relationship)
Performing a task by a method in one class on behalf of some
other class
g. What is aggregation (has a relationship)?
h. What is composition (has a relationship with compulsion of
object existence)
b.
c.
d.
e.
f.
d.
e.
f.
g.
h.
i.
j.
k.
l.
m.
n.
o.
p.
q.
5. Questions on Threads
a. Difference between thread and process
b. Two types of creating thread
c. Thread life cycle
d. Synchronized use
e. Difference when synchronized is applied on static and non-static
methods
f. Diff between yield and sleep
g. Diff between wait and sleep
h. Diff between notify and notifyall
i. If we dont call start method but called run directly what
happens?
j. Diff between active thread and daemon thread
k. Can a variable can be synchronized? (no)
l. Can static methods can be synchronized? Yes