Java Interview Questions

QNo
Question
Answer
1
What is Java?
Click Here
2
What is JDK and JRE in Java?
Click Here
3
Why main method is static in Java?
Click Here
4
What is the scope of variable in Java?
Click Here
5
What is abstract class in Java?
Click Here
6
What is interface in Java?Why are used?
Click Here
7
Define inheretance?what are the types of Inheritance?
Click Here
8
Can we overload main method?
Click Here
9
What is "super" keyword in Java?
Click Here
10
What is "static" keyword in Java?
Click Here
11
What is used of "new" keyword in Java?
Click Here
12
Why java is Platform Independent?
Click Here
13
What is ClassLoader in Java?
Click Here
14
Difference between Hashset and ArrayList in Java?
Click Here
15
How can override the private method in Java?
Click Here
16
What is wait() method in java?
Click Here
17
Difference between Polymorphism and Inheritance in Java?
Click Here
18
Difference between throw and throws keyword in Java?
Click Here
19
Why Java doesn't support multiple inheritances?
Click Here
20
What is the use Runnable vs Thread in Java?
Click Here
21
What is Iterator in Java?
Click Here
22
How we are Run Simple Java Program Using Console?
Click Here