<< January 10, 2009 | Home | January 12, 2009 >>

Friday Java Quiz (Almost Three Days Late)

Q: Will the following class compile? Run without exceptions? If so, what will it print?

1    public class Foo { 
2        public static void main(String[] args) { 
3            System.out.println(1.0/0.0); 
4        } 
5    }

Strict rules: no compiling.

Tags :