Font size
WorksheetsQUIZ FINAL JAVA_TOPGUN14
Total questions: 25
Worksheet time: 25mins
a, c, d
b, c
c, d
None of above
public class default{}
protected inner class Test{}
final class Test{}
None of above.
true
false
Compilation fails
An exception is thrown at runtime
falsefalse
truefalse
falsetrue
truetrue
11
10
Nothing
Infinite loop (Endless loop)
Compile Error at line 1
Compile Error at line 2
Compile Error at line 3
None of the above
a = 6 b = 1
a = 7 b = 2
a = 6 b = 0
Compilation fails.
5 - 14
5 - 13
6 - 14
6 – 13
l
lo
llo
Compilation fails
Compilation fails at line 1 and line 2
Compilation fails at line 3
Compilation fails at line 4 and line 5
0 5 0 7
[Java, JavaFx, WebGL][WebGL, JavaFx, Java]
[WebGL, JavaFx, Java][Java, JavaFx, WebGL]
[Java, JavaFx, WebGL][Java, JavaFx, WebGL]
[WebGL, JavaFx, Java][WebGL, JavaFx, Java]
Compile time error
Super
Subclass
Runtime error
RuntimeException
ClassCastException
NullPointerException
D. IOException
An abstract method can not override an another abstract method.
A specific method can not override an another abstract method.
An abstract method can not be declared with the keyword throws
No sentences above are true
Prints: C.printB1 C.printB2
Prints: C.printB1 B.printB2
Prints: B.printB1 C.printB2
Prints: B.printB1 B.printB2
Yes
No
abstract
final
private
static
The “extend” keyword is used to extend a class in java.
You can extend multiple classes in java.
Private members of the superclass are accessible to the subclass.
We can’t extend Final classes in java.
A try statement must have at least one corresponding catch block.
Multiple catch statements can catch the same class of exception more than once.
An Error that might be thrown in a method must be declared as thrown by that method, or be handled within that method.
Except in case of VM shutdown, if a try block starts to execute, a corresponding finally block will always start to execute.
CallableStatement Interface
PreparedStatement Interface
CallableStatement Class
None of the above
Connection
Statement
ResultSet
None of the above
line 1
line 2
line 1 and line 2
None of above
nothing
Runtime Exception
Compile fails
NullPointerException
Compile fails.
Compile successfully but if method a or method b add abstract declaration then compile fails.
Compile successfully but if remove protected declaration at method b then compile fails.
None of the above
Compile fails.
Runtime Exception.
Nothing.
None of the above.
