Null
Compile time error
Nullnull
0
Public
Private
Protected
Default access
Public static short stop = 23
Protected short stop = 23
Transient short stop = 23
Final void madness(short stop)
Base
BaseBase
Compilation fails
The code runs with no output
True
False
Compilation fails
An exception is thrown at runtime
Done
One two done
One two three done
One two three two three done
Interface
String
Float
Unsigned
Void run()
Public void run()
Public void start()
Void run(int priority)
Java.util.Map
Java.util.List
Java.util.HashTable
Java.util.Collection
Abstract class
Parent class
Final class
None of above
It is syntax
Can store multiple values
Both of above
None of above
Finally
Compilation fails
The code runs with no output
An exception is thrown at runtime
You must have a reference to an instance of the enclosing class in order to instantiate it
It does not have access to nonstatic members of the enclosing class
It's variables and methods must be static
It must extend the enclosing class
1, 2, 4
2, 4, 5
1, 2, 6
2, 3, 4
Int[ ] scores = {3, 5, 7};
Int [ ][ ] scores = {2,7,6}, {9,3,45};
String cats[ ] = {"Fluffy", "Spot", "Zeus"};
Boolean results[ ] = new boolean [] {true, false, true};
Integer results[ ] = {new Integer(3), new Integer(5), new Integer(8)};
Start() method
Init() method
Stop() method
Destroy() method
Interface
String
Float
Unsigned
Abstract class
Parent class
Final class
None of above
Finally
Compilation fails
The code runs with no output
An exception is thrown at runtime
You must have a reference to an instance of the enclosing class in order to instantiate it.
It does not have access to nonstatic members of the enclosing class
It's variables and methods must be static
It must extend the enclosing class
Int[ ] scores = {3, 5, 7};
Int [ ][ ] scores = {2,7,6}, {9,3,45};
String cats[ ] = {"Fluffy", "Spot", "Zeus"};
Boolean results[ ] = new boolean [] {true, false, true};
Integer results[ ] = {new Integer(3), new Integer(5), new Integer(8)};
Wait!
Here's an interesting quiz for you.