-
-
Inheritance and Aggregation
What is the difference between inheritance and aggregation? When would you use one over the other
-
What is the catch or declare rule for method declarations
If a checked exception may be thrown within the body of a method, the method musteither catch the exception or declare it in its throws clause.
-
How are this() and super() used with constructors
This() is used to invoke a constructor of the same class. super() is used to invoke asuperclass constructor.
-
What is the result of the following?public static void main(String[] args)
choice:a)compilation errorb)runtime errror Or what is the result?
-
-
Subclass is the class that does the inheriting (the child class)
Skill/Topic: InheritanceA) TrueB) False
-
Print Command Line Arguments
How to print Command Line Arguments without using IO Classes?
-
-
Store arbitrary number of objects
Name two classes that can store arbitrary number of objects.
-
-
-
Difference between Java and J2ee
Explain the difference between Java and J2EE in detail?
-
-
What is the Map interface
The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys withvalues.
-
-
Java Singleton Class
How to create a class that has only one object?
-
-
Abstract class can be declared as final
Skill/Topic: InheritanceA) TrueB) FalseExplanation: An abstract class may not be declared as final.
-
DataOutput
What is the basic functionality of DataOutput interface in java?
Java Interview Questions
Ans