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


@Target
@Reference
@Documented
@inherited

View Answer

Instant
Duration
Clock
System

View Answer

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

View Answer

One
Multiple
Zero
Twice

View Answer

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

View Answer

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

View Answer

suffix #
prefix @
suflix @
prefix #

View Answer

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

View Answer

Final Class
None of these
Local inner class
Anonymous class

View Answer

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

View Answer