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.
- class StaticDemo{
- static int i = 10;
- static {i = i * 2 ;}
- public static void main(String args[]){
- System.out.prinltn(i);
- }
- static {i = i / 45 ;}
- }
b. The code will print 10
c. The code will print 20
d. The code will print 5

Post new comment