This Java-focused quiz, titled 'Fresher Drive @ 27th September JAVA', tests knowledge on Java programming concepts including class structures, interfaces, inheritance, and control structures.
Public
Private
Protected
Default access
Rate this question:
Public static short stop = 23
Protected short stop = 23
Transient short stop = 23
Final void madness(short stop)
Rate this question:
Base
BaseBase
Compilation fails
The code runs with no output
Rate this question:
True
False
Compilation fails
An exception is thrown at runtime
Rate this question:
Done
One two done
One two three done
One two three two three done
Rate this question:
Interface
String
Float
Unsigned
Rate this question:
Void run()
Public void run()
Public void start()
Void run(int priority)
Rate this question:
Java.util.Map
Java.util.List
Java.util.HashTable
Java.util.Collection
Rate this question:
Abstract class
Parent class
Final class
None of above
Rate this question:
It is syntax
Can store multiple values
Both of above
None of above
Rate this question:
Finally
Compilation fails
The code runs with no output
An exception is thrown at runtime
Rate this question:
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
Rate this question:
1, 2, 4
2, 4, 5
1, 2, 6
2, 3, 4
Rate this question:
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)};
Rate this question:
Start() method
Init() method
Stop() method
Destroy() method
Rate this question:
Interface
String
Float
Unsigned
Rate this question:
Abstract class
Parent class
Final class
None of above
Rate this question:
Finally
Compilation fails
The code runs with no output
An exception is thrown at runtime
Rate this question:
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
Rate this question:
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)};
Rate this question:
Quiz Review Timeline (Updated): Dec 8, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.