Q:

What can directly access and change the value of the variable name?

0

What can directly access and change the value of the variable name?

package p1;

class Target
{
public String name = "hello";
}

  1. any class
  2. only the Target class
  3. any class in the p1 package
  4. any class that extends Target

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

any class in the p1 package

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Core Java Multiple Choice Questions And Answers

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the result?... >>
<< Which two statements are true about has-a and is-a...