Test Your Programming Skills with Safcode!


Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 20
Each question carry 10 mark , no negative marking"



Quiz Start


A constructor is used to create objects.
All of the above
A constructor may be declared private
A constructor must have the same name as the class it is declared within.

View Answer

normalized()
instant()
getValue()
of()

View Answer

Associated with an instance of the enclosing class
Cannot access private members of the enclosing class
Can implement anonymous interfaces
None of these

View Answer

None of the above
Single line comment
Multiline comment
Both A & B

View Answer

@Documented
@Target
@Reference
@inherited

View Answer

Local inner class
Final Class
None of these
Anonymous class

View Answer

None of them
Java Virtual Machine
Java Verified Machine
ava Very Large Machine

View Answer

throw and throws
try-catch
none of these
try and finally

View Answer

@Retention
reference
interface
@Documented

View Answer

Duration
Instant
Clock
System

View Answer