MCQ
Which method does return a string after appending str with the invoking string?
  • A
    String toLowerCase( )
  • String concat(String str)
  • C
    String toUpperCase( )
  • D
    byte[] getBytes( )

Answer

Correct option: B.
String concat(String str)
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