MCQ
Which of the following method of String class is used to convert a string into an array of bytes?
  • get Bytes ()
  • B
    Bytes ()
  • C
    get bytes ()
  • D
    Convert bytes ()

Answer

Correct option: A.
get Bytes ()
get Bytes ()

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