Start learning →

Match Java check: 1. Hide: p. Disallowed 2. Block: q. In braces 3. Top: r. Class mods

A1-p, 2-q, 3-r
B1-p, 2-r, 3-q
C1-q, 2-p, 3-r
D1-r, 2-p, 3-q
Answer & Solution
Correct answer: A. 1-p, 2-q, 3-r
Java blocks are delimited by curly braces, member access is shaped by class-level modifiers, and hiding one local variable with another causes a syntax error.
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 →