Java / Data types
What is the output?
System.out.println(1.0/0);
System.out.println(1.0/0);
Most of us may expect ArithmeticException, however, in this case, there will be no exception instead it prints Infinity.
1.0 is a double literal and double datatype supports infinity.
More Related questions...