Question 101Asked in BEL PE Computer Science, 20 Dec 2025 (5:00 PM)

Which of the following statements in Java will compile and execute successfully without violating keyword usage rules?

  1. Aboolean null = false; System.out.println(null);
  2. Bint static = 10; System.out.println(static);
  3. Cfloat goto = 2.5f; System.out.println(goto);
  4. Dint _for = 5; System.out.println(_for);
Show answerHide answer

Correct answer: (D) int _for = 5; System.out.println(_for);

From BEL PE Computer Science PYQ, 20 Dec 2025 (5:00 PM)

This is question 101 of BEL PE Computer Science PYQ, 20 Dec 2025 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.