Static { int a = 10;}
Static int a,b;
Public static void main(?)
{ a--;
Demo();
System.out.println(a+b);
}
Public static void demo()
{ b = a++;}
Please let me know the result for the above code snippet.
Static int a,b;
Public static void main(?)
{ a--;
Demo();
System.out.println(a+b);
}
Public static void demo()
{ b = a++;}
Please let me know the result for the above code snippet.