Question

Complete the Java method to check if an integer array arr is empty. public class ArrayChecker {     public boolean isEmpty(int[] arr) {         _________ // Line to complete     } }

A return arr.length == 0;
B return arr.size() == 0;
C return arr == null;
D return arr.isEmpty();
E return arr.length < 1;
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)