Java Topics
Java Topics
1. OOPS Concepts
a. A.P.I.E.
b. SOLID
c. Class design
d. HATEOS
e. ACID
f. DRY
2. Core Java
a. Abstract Class
b. Inner class / static inner class
c. Immutable class
d. Interface
e. Marker Interface
f. Exception handling
g. Garbage Collection
h. Class loader/ static and dynamic loading
i. Comparable / Comparator Interface
j. String pool / String Buffer/ String Builder
k. Constructor chaining / in case of abstract class/ interface
l. This and super keywords
m. Serialization
n. Iterator / List Iterator
o. Rules of overloading and overriding
p. Reflection
q. Exception Hierarchy and finally Method, ConcurrentModificationException
r. Pass by value / pass by reference
s. Locking(class level vs instance level)
t. Synchronization
u. Locking mechanisms
v. Serializable & Externalizable and cloanable Interfaces
w. Finalize/clone method of object class
3. Collection Framework(internals)
a. Array / Array List
b. Linked List
c. Vector (rarely asked)
d. Hash Map
e. hash Table
f. Linked Hash Map
5. Java 8 topics
7. Spring Core
a. Bean Factory
b. Application Context
c. Bean Life Cycle
d. Init / destroy methods
e. Bean Listeners
8. Database (SQL/PLSQL)
a. DDL
b. DML
c. Delete/truncate/Drop
d. Union / Union All
e. Index/ clustered- non clustered index (including implementations at DS level)
f. Procedure
g. Group by/ having
h. Count(*) Max , Avg, etc
i. Join (types of joins)
j. Primary Kay / Unique Key
k. Isolation levels
l. ACID properties
1. Design a stack that supports getMin() in O(1) time and O(1) extra space.
Question Set 2
2. Countdown latch/cyclic barrier -explain, difference between cyclic barrier and countdown
latch
8. CopyOnWriteArrayList implementation
Question Set 3:
4. ReentrantLock implementation
Queue Set 4:
5. largest-sum-contiguous-subarray
16. You have a computation heavy CPU and one of your jobs is taking 15s to complete
(which is much longer than expected). Can you improve it and how?
(using threads and executer service)
1. Inside your thread’s run method if you throw an exception, what will happen? Is it
possible? Who will handle the exception?
2. How you will access database from shell script
3. Hibernate Spring integration
4. Hibernate performance tuning
5. Suppose you have a composite key in db. How you will update one of the columns which
make up the composite key? Is it possible? If yes, Write the sql stmt for that
6. Transaction API
7. Exception handling in Spring MVC
8. JMS and rabbitmq
9.