[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

JAVA Programming :: Objects and Classes - Discussion

Home > JAVA Programming > Objects and Classes > MCQs Questions Discussion

13 / 30

Choose the correct option.

What is the output for the below code ?

public class Test {
public static void main(String... args) {
int a =5 , b=6, c =7;
System.out.println("Value is "+ b +;
System.out.println(a + b +;
System.out.println("String "+(b+);
}
}

AValue is 67 18 String 13

BValue is 13 18 String 13

CValue is 13 18 String

DCompilation fails

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!