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 must have the same name as the class it is declared within.
A constructor may be declared private
A constructor is used to create objects.
All of the above

View Answer

Zero
One
Multiple
Twice

View Answer

@Documented
interface
reference
@Retention

View Answer

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

View Answer

local
static
native
final

View Answer

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

View Answer

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

View Answer

James Gosling
Blaise Pascal
Rasmus Lerdof
Charles Babbage

View Answer

of()
now()
normalized()
getVal()

View Answer

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

View Answer