Question

Which of the following is used to explicitly release memory occupied by an object in Java?

A delete keyword
B free() method
C System.gc() forces immediate deallocation
D Java does not provide a way to force guaranteed immediate deallocation
E finalize() guarantees deallocation
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)