What will be the output of the program?class Test { public static void main(String [] args) { int x= 0; int y= 0; for (int z = 0; z 2 ) && ( y > 2)) { x ; } } System.out.println(x ' ' y); } } - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
21 Feb 2023 05:32 PM study24x7 study24x7

What will be the output of the program?
class See more

A

5 2

B

5 3

C

6 3

D

6 4

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles