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

ICSE Class 10 Computer Applications PYQ · 2024 Paper · Section A

1(xviii)1 Mark · 2024 · Section A · 2024 Paper

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

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

Show SolutionHide Solution↓

Assertion and Reason both are false.

Reason — A static method can only access static variables and static methods directly because it belongs to the class, not any specific object. Hence, Assertion is false.
Both instance and static methods can access static variables. Hence, Reason is false.

← Previous questionNext question →

Browse the free Computer Applications sample bank