Interview questions
JAVA interview questions – page 84
2,804 questions. Tap “Show answer” to check yourself.
-
What do you think of the primary benefit of Encapsulation?
-
What is composition?
-
What do you think of NullPointer Exception?
-
Tell the difference between a Window and a Frame?
-
Define function overloading?
-
Tell me the difference between Overloading and Overriding?
-
Define final class?
-
Define Wrapper classes?
-
Differentiate between yielding and sleeping?
-
Why do you think Vector class is used?
-
What is garbage collection in Java?
-
What is ROR
-
Tell the difference between error and an exception?
-
When a thread is created and started, what is its initial state?
-
What do you mean by runtime polymorphism or dynamic method dispatch?
-
Is it necessary that each try block must be followed by a catch block?
-
Why do we need wrapper classes?
-
What do you mean by Locale class?
-
Tell the difference between an Interface and an Abstract class?
-
Can a top level class be private or protected?
-
Tell the difference between static and non-static variables?
-
How can we add menushortcut to menu item?
-
What are use cases?
-
What do you mean by Serialization and deserialization?
-
Which class should you use to obtain design information about an object?
-
What do you think the purpose of File class is?
-
When Arithmetic Exception is thrown?
-
What is the difference between Swing and AWT components?
-
Describe the use of sublass in a Java program?
-
What is the difference between constructors and other methods?