0 votes
193 views
in Computer Science by (14.9k 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 (134k 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

...