Single Choice Not Set

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

public class Test{
    private int qusNo = 100;
}

ID: #2123 Declaration and Access Control in Java 3,179 views
Question Info
#2123Q ID
Not SetDifficulty
Declaration and Access Control in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Only the Test class.
  • B Any class.
  • C Any class in com.mypackage package.
  • D Any class that extends Test.
Correct Answer

Explanation

Only the Test class.

Share This Question

Challenge a friend or share with your study group.