What will be the output of the following Java program?
class variable_scope 
{
 public static void main(String args[]) 
int x; x = 15;
 {
 int y = 9;
 System.out.print(x + " " + y); 
System.out.println(x + " " + y); 
}
 }

Posted on by