1) True or False? A non-static method can be called
locally,
without class or object reference, from inside a
static method.
True / False
( False )
2) True or False? A outer class can be marked
static. True / False
( False )
3) Which of the following is not used in creating a
Java constant?
a ) public
b) protected
c) static
d)
final
( b )
4) True or False? Because String class is a reference
type,
passing in a String reference into a method allows changes
to be made to the data structure that is referenced
by the
passed in address. True /
False
( False )
5) True or False? The 'final' keyword allows an assigned
variable to be changed only once. True / False
( False )
// A final variable can be assigned only
once
6) Which of the following allows access
from anywhere in the
Java environment
a) private
b) no modifier
c) protected
d) public
( public )
7) Which of the
following restrict access restricts access to the
package