Interview questions
JAVA interview questions – page 87
2,804 questions. Tap “Show answer” to check yourself.
-
Why Java does not support pointers?
-
Define object cloning?
-
Can we override static method?
-
Why we cannot override static method?
-
What do you mean by Exception Handling?
-
Define finally block?
-
Can I import same package/class twice? Will the JVM load the package twice at runtime?
-
Tell the super class for every class?
-
Why multiple inheritance is not supported in java?
-
Define marker interface?
-
Explain static import ?
-
Define the base class for Error and Exception?
-
Tell the difference between Checked Exception and Unchecked Exception?
-
Can we execute a program without main() method?
-
Can finally block be used without catch?
-
What is difference between object oriented programming language and object based programming language?
-
Can an exception be rethrown?
-
What do you mean by nested class?
-
Can we access the non-final local variable, inside the local inner class?
-
How many ways we can create the string object?
-
Can a class have an interface?
-
Can you achieve Runtime Polymorphism by data members?
-
Can you use abstract and final both with a method?
-
Tell the difference between abstraction and encapsulation?
-
Can an Interface have a class?
-
Why java uses the concept of string literal?
-
What do you mean by blank final variable?
-
Is it possible to declare an interface method static?
-
Define final method?
-
Can we intialize blank final variable?