A

Admin • 832.27K Points
Coach

Q. What can directly access and change the value of the variable qusNo?
package com.mypackage;

public class Test{
private int qusNo = 100;
}

  • (A) Only the Test class.
  • (B) Any class.
  • (C) Any class in com.mypackage package.
  • (D) Any class in com.mypackage package. D. Any class that extends Test.
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.