Multiple Choice
What modifier should you use on a variable so that it can only be referenced inside its defining class.
A) public
B) private
C) protected
D) Use the default modifier.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: To append data to an existing file,
Q4: Suppose the xMethod() is invoked in the
Q5: Analyze the following code: public class Test
Q6: What is the output of running class
Q7: Which code fragment would correctly identify the
Q9: _ describes the state of an object.<br>A)
Q10: What would be the result of attempting
Q11: When you implement a method that is
Q12: Text I/O <br>Write a program that will
Q13: Suppose the xMethod() is invoked from a