Frequently Asked Java Interview Questions
Basics::
- What are OOPS concepts and explain them?
- What is Inheritance?
- How and why you have implemented Inheritance in your project?
- What is Abstraction?
- How and why you have implemented Abstraction in your project?
- What is Encapsulation?
- What is Access Specifier and explain them?
- What is Access Modifiers and explain them?
Exceptions::
- What is Exception and explain its different types?
- What kind of exceptions you have encountered in your project?
- Why finally block is required when we can close resources after catch block?
- str="java"; str.substring(7); Do we get any exception in above code if yes what exception that will be?
String::
- What is the advantage of String Pool?
HashMap::
- What is HashMap?
- Explain internal mechanism of HashMap?
- Why you have used HashMap in your project if used?
- Is HashMap allows duplicate keys if not what will happen if we try to insert duplicate value?
- How can we allow HashMap to have duplicate keys in it?
- Is HashMap allows duplicate values?
- Is it possible to set initial size of HashMap if yes how?
List::
- What is List?
- Why you have used List in your project if used?
- Is List allows duplicate values if yes then how can we stop it?
- How can we make a Lis ready only without using any predefined functions?
JDBC::
- Explain the steps to create JDBC connection?
- From where we get SessionFactory in JDBC?
Features::
- What are the features of Java 1.7?
Design Pattern::
- Explain Singleton Design Pattern?
- What will happen if we implement clone method in Singleton Design Pattern?
Unsorted::
- What needs to be done to compare two objects?
- What and why we required Generics?
- What is Auto Boxing and Auto UnBoxing?
No comments:
Post a Comment