MCQ
Which of the following can create a String object with its initial value using ary argument ?
  • A
    String ( )
  • B
    String (char ary[], int start, intlen)
  • String (char ary[ ])
  • D
    String (String strObj)

Answer

Correct option: C.
String (char ary[ ])
C

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