MCQ
Which of the following will create a String object with no character?
  • A
    String (char ary[ ])
  • B
    String (String strObj)
  • C
    String (string literal)
  • String ( )

Answer

Correct option: D.
String ( )
D

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