निम्नलिखित जावा प्रोग्राम का आउटपुट क्या होगा?
class variable_scope
{
public static void main(String args[])
{
int x;
x = 5;
{
int y = 6;
System. out. print(x + " " + y);
}
System. out. print(x + " " + y);
}
}
1
5 6 5
2
संकलन त्रुटि
3
5 6 5 6
4
रनटाइम त्रुटि