Java Interview Questions
Java Interview Questions
OOP(Most IMP)
● What is Class?
● What is an Object?
● What is IS-A Inheritance?
○ Single level
○ Multi level
○ Hierarchical
○ Multiple (Not possible in java, Need to implement using Interface) IMP
○ Hybrid
● What is HAS-A inheritance?(Aggregation)
● What is Polymorphism and its types?
● Difference between method overloading and method overriding
● What is Runtime polymorphism and Compile time polymorphism?
● What is Dynamic binding?
● What is super, this, static, final and instanceOf keyword?
● What are wrapper classes?
● What is Object class?
● What is Encapsulation?
● What are packages and subpackages in java?
● What are Access modifiers in java?
○ public
○ private
○ default
○ Protected
● What is Abstraction?
● In how many ways abstraction can be achieved?
● Difference between interface and abstract class
● Implement Multiple inheritance using interface
Arrays/Strings
Exception Handling
Multithreading
● What is Multithereading?
● In how many ways multithreading can be implement?
● Difference between multithreading and multitasking
● Difference between yield(), slep() and join() methods
JDBC
Collection framework
Java 8 features
Spring Core
Spring BOOT