Single Choice Not Set

QWhat will be output?
String S1 = "S1 ="+ "123"+"456";
String S2 = "S2 ="+(123+456);

ID: #2225 String in Java 1,968 views
Question Info
#2225Q ID
Not SetDifficulty
String in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A S1=123456, S2=579
  • B S1=123456,S2=123456
  • C S1=579,S2=579
  • D None of This
Correct Answer

Explanation

S1=123456, S2=579

Share This Question

Challenge a friend or share with your study group.