MCQ Single Best Answer Easy

Q Give the output of the following program

// Give the output of the following program fragment:
class MCQClass {
	public static void main(String args[]){
		String s = "String";
		int a = 12, b = 45;
		System.out.println(s + a + b);
		System.out.println(a + s + b);
		System.out.println(a + b + s);
	}
}

ID: #22214 Introduction in String Java 79 views
Question Info
#22214Q ID
EasyDifficulty
Introduction in String JavaTopic

Choose the Best Option

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

  • A
    String1245
    12String45
    57String
  • B
    String57
    12String45
    57String
Correct Answer: Option A

Explanation


Share This Question

Challenge a friend or share with your study group.