Question

Consider a BankAccount class with a balance field. To properly encapsulate balance, it should be declared as:

A public int balance;
B protected int balance;
C private int balance;
D static int balance;
E final int balance;
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)