MCQs > IT & Programming > Java > Output of the following program? Class Upwork{ Public static void main(string args[]) { Byte x = 64; Int I; Byte y; i = x << 2 y = (byte) (x << 2) system.out.print(I + '' + y); } }

Java MCQs

What is the output of the following program?

Class Upwork{

Public static void main(string args[])

{

Byte x = 64;

Int I;

Byte y;

i = x << 2

y = (byte) (x << 2)

system.out.print(I + “” + y);

}

}

Answer

Correct Answer: 256 0

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

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it