A

Admin • 828.70K Points
Coach

Q. How many objects are created?
String s1 = "abc";
String s2 = new String("abc");

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 0

Explanation by: Admin
One string literal and one new String object are created.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.