what will be the output of the following java program? class variable_scope { public static void main(string args[]) { int x; x = 5; { int y = 6; system.out.print(x + " " + y); } system.out.println(x + " " + y); } }
what will be the output of the following java program? class variable_scope { public static void main(string args[]) { int x; x = 5; { int y = 6; system.out.print(x + " " + y); } system.out.println(x + " " + y); } }
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!