MCQs > IT & Programming > Java > Output of following program? class Upwork { public static void main(String args[]) { int x=100; double y=100.1; boolean b= (x=y); System.out.println(b); } } void 
main(String args[]) { int x=100; double y=100.1; boolean b= (x=y); System.out.println(b);
} }

Java MCQs

What will be the output of following program? class Upwork { public static void 
main(String args[]) { int x=100; double y=100.1; boolean b= (x=y); System.out.println(b);
} }

Answer

Correct Answer: compilation fails

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