MCQ
Which method does return an array of characters as bytes from invoking string?
  • byte[ ] getBytes( )
  • B
    void getChars(int targetIndx)
  • C
    String toLowerCase( )
  • D
    char indexAt(int index)

Answer

Correct option: A.
byte[ ] getBytes( )
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