Correct Answer : D
const
: It is a keyword in java but never used. To declare variables as constant we use final in java.
goto
: goto
is a keyword in java but is not used.
true
, false
are boolean literals.
null
: it is a literal which can be used as value for any reference type. null
can be assigned to any variable except of primitive type.
break
: control comes out of the current loop.
continue
: resumes execution at the end of the enclosing labeled loop body.
return
: used to finish execution of a method. It carries return value from called method to caller.
final
: keyword in java. final
class cannot be inherited. final
method cannot be overridden. final
variable value cannot be changed.
finally
: finally
is a keyword in java. finally
block is executed at any cost whether exception is caught or not.