A

Admin • 828.03K Points
Coach

Q. What is the output?
String s = "abc";
s = s + "d";
System.out.println(s);

  • (A) abcd
  • (B) abc
  • (C) cd
  • (D) abc+d

Explanation by: Admin
The string is concatenated with "d" resulting in "abcd".

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.