0 votes
232 views
in Computer Science by (15.3k points)
Assertion (A): Static method can access static and instance variables.

Reason (R): Static variable can be accessed only by static method.

(a) Assertion and Reason both are correct.

(b) Assertion is true and Reason is false.

(c) Assertion is false and Reason is true.

(d) Assertion and Reason both are false.

1 Answer

0 votes
by (137k points)
 
Best answer

Correct answer is (a) Assertion and Reason both are correct.

Assertion (A): Static method can access static and instance variables.

Reason (R): Static variable can be accessed only by static method.

Related questions

...