Start learning →

Where are member variables declared within a Java class structure?

AOutside methods
BIn loop headers
CIn catch clauses
DIn method bodies
Answer & Solution
Correct answer: A. Outside methods
Member variables are declared within the class body but outside of any method.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →