MCQ
Which statement can be written by combining statement Room r1; and r1 new Room0?
  • Room r1 = new Room 0;
  • B
    rlRoom0;
  • C
    Room r1 = new Room r2;
  • D
    None of these

Answer

Correct option: A.
Room r1 = new Room 0;
Room r1 = new Room 0;

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free