Saturday, July 5, 2008

SCJP: Operators

Subclasses of the RuntimeException class are called ___ (checked/unchecked) exceptions. Unchecked

Every try block should have a corresponding catch block. (True/False)
False

The ___ statement causes the current iteration of the loop to be skipprd, the next iteration starts.
Continue

What will be the values of “a” and “b” when the following for loop completes?
for(a=1,b=4; a
a=2, b=3

The arguments to case labels of a switch statement can not be variables. (True/False)
True

A local variable of an enclosing context can be accessed by an inner class only if it is ____.
Final

An exception can be explicitly thrown using the ___ statement.
Throw

An Inner class can be declared private.
True

Inner classes may not declare ___ initializers/members unless they are compile time constants.
Static

The if statement takes an argument of __ data type.
Boolean

No comments: