MCQ
What is used to create a String object which is same as object specified in argument?
  • String (String strObj)
  • B
    String (string literal)
  • C
    String (char ary[ ], int start, int len)
  • D
    String ( )

Answer

Correct option: A.
String (String strObj)
A

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