Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
- public class Demo
- {
- static
- {
- int i = 10;
- }
- static int i;
- public static void main(String args[])
- {
- i–-;
- System.out.println(i);
- }
- static
- {
- i–-;
- }
- }
a. 8
b. 10
c. 9
d. None of the above

Post new comment