[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 :: Basic Concepts - Discussion

Home > JAVA Programming > Basic Concepts > MCQs Questions Discussion

41 / 64

What is the output for the below code?

public class Test {
public static void main(String[] args){
byte b = 6;
b+=8;
System.out.println(b);
b = b+7;
System.out.println(b);
}
}

A14 21

B14 13

CCompilation fails with an error at line 6

DCompilation fails with an error at line 4

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!