Blog Archives

3 Java class loading interview Q&As

Q1. What do you know about Java class loading? Explain Java class loaders? A1. Class loaders are hierarchical. Classes are introduced into the JVM as they are referenced by name in a class that is already running in the JVM. So, how is the very first class loaded? … Read...

Members Only Content
Log In Register Home


Java abstract classes Vs interfaces Interview Q&As

Q1. When to use an abstract class over an interface? Q2. What is a diamond problem? Q3. Does Java support multiple inheritance? In design, you want the base class to present only an interface (or a contract) for its derived classes. … Read more ›...

Members Only Content
Log In Register Home


Java classes and interfaces are the building blocks

Q1. Which class declaration is correct if A and B are classes and C and D are interfaces? a) class Z extends A implements C, D{} b) class Z extends A,B implements D {} c) class Z extends C implements A,B {} d) class Z extends C,D implements B {}...

Members Only Content
Log In Register Home


800+ Java Interview Q&As Menu

Top