MCQs > IT & Programming > Java > Output of following code:- int a = 5; int b = a; a*=2; b+=1; System.out.println(a); System.out.println(b);

Java MCQs

What will be the output of following code:- int a = 5; int b = a; a*=2; b+=1; 
System.out.println(a); System.out.println(b);

Answer

Correct Answer: 10 6

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Java MCQ Questions

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it