MCQ
What is used to create a String object that refers to the literal specified in argument?
  • A
    String (String strObj)
  • String (string literal)
  • C
    String ( )
  • D
    String (String strObj)

Answer

Correct option: B.
String (string literal)
B

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