CodePhataa
Home
GoAlgo
Revision Hub
Learning Path
Challenge
Compiler
More
Toggle theme
Open menu
User Defined Methods | Java Quiz | CodePhataa | CodePhataa
User Defined Methods
Back
1 / 29
0 pts
Static Methods
Assertion-Reasoning
Assertion (A):
A static method can access instance variables directly without creating an object.
Reason (R):
Static methods belong to the class rather than a specific instance and are loaded during class loading.
A
Both (A) and (R) are true and (R) is the correct explanation of (A)
B
Both (A) and (R) are true but (R) is not the explanation
C
(A) is true, (R) is false
D
(A) is false, (R) is true
Select an answer to continue.