Safcode | Code Your Ideas by Sir Safder


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


suffix #
prefix @
suflix @
prefix #

View Answer

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

View Answer

@Target
@Reference
@inherited
@Documented

View Answer

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

View Answer

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

View Answer

switch
class
double
then

View Answer

native
local
static
final

View Answer

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

View Answer

Zero
Twice
One
Multiple

View Answer

interface
@Documented
@Retention
reference

View Answer

Blaise Pascal
Charles Babbage
Rasmus Lerdof
James Gosling

View Answer

A constructor has an associated destructor
A constructer can be overloaded
A constructor returns void
All of them

View Answer

A and B
B and C
Only A
Only B

View Answer

None of these
Final Class
Anonymous class
Local inner class

View Answer

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

View Answer

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

View Answer

Logical programming
Functional programming
Structured programming
Backward reasoning

View Answer

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

View Answer

heap
Register
Accumulator
stack

View Answer

System
Clock
Duration
Instant

View Answer