ICSE Class 10 Computer Applications
Question 13 of 30
Solved 2024 Question Paper ICSE Class 10 Computer Applications — Question 18
Back to all questions 18
Question Assertion (A): Static method can access static and instance variables.
Reason (R): Static variable can be accessed only by static method.
- Assertion and Reason both are correct.
- Assertion is true and Reason is false.
- Assertion is false and Reason is true.
- Assertion and Reason both are false.
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.