A class must define a constructor
A constructor can be declared private
A constructor can return a value
A constructor must initialize all fields when a class is instantiated
class Ghost { abstract void haunt(); }
abstract class Ghost { void haunt(); }
abstract class Ghost { void haunt() {}; }
abstract Ghost { abstract void haunt(); }
class Link { }
abstract class Link { }
native class Link { }
final class Link { }
abstract class
parent class
Final class
None of above
Keyword
Method
Keyword and Method
No error
Compilation error
Program won\'t run
Program exit
String class
Object class
Abstract class
ArrayList class
notify
wait()
notifyall()
stop()
Byte
Integer
Array
Class
ArithmeticException
Throwable
Exception
java.awt
java.lang
java.applet
java.string
An integer expression
A Boolean expression
Either A or B
Neither A nor B
throws.java.out.IOException
throws.java.in.IOException
throws.java.io.IOException
throws.java.io.InException
has no arguments
has no return type
has one argument but no return type
has two arguments
.obj
.exe
Byte code
None
Javac
Java
exe
Run
Polymorphism
Hierarchical inheritance
Hybrid inheritance
Multipath inheritance
0
1
2
None of the above
arrayName[] p = new arrayName[5];
arrayName p[5];
arrayName[] p [];
arrayName p[][] = new arrayName[2][];
The type of code generated by a Java compiler
The type of code generated by a Java Virtual Machine
It is another name for a Java source file
It is the code written within the instance methods of a class