Consider the following code that appears in a test class. A a = new A() ;
Int c = a.b;
In order for this code to work,which statement must be true?
A) a must be declared public inside class A
B) b must be declared public inside class A
C) c must be declared public inside class A
D) Method b( ) must return int
Correct Answer:
Verified
Q28: If d is a double and i
Q29: Which of these is not a legal
Q30: A default constructor requires at least one
Q31: All Java programs must define at least
Q32: A built-in class that helps to split
Q34: Which is not a primitive type in
Q35: Integer literals beginning with the digit 0
Q36: If an int is added to a
Q37: A statement invoking a constructor should also
Q38: How is the finally keyword used in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents