MCQs > IT & Programming > Java > Output of following program? class Upwork { public static void main(String [] args) { int x = 0x80000000; System.out.print(x + ' and '); x = x >>> 31; System.out.println(x); } }

Java MCQs

What will be the output of following program? class Upwork { public static void main(String [] args) { int x = 0x80000000; System.out.print(x + " and "); x = x >>> 31; System.out.println(x); } }

Answer

Correct Answer: -2147483648 and 1

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