Hmm, good one, let me try
1->Infinity
2->Exception
3->compile time error
4->Infinity
5->-Infinity
6->-Infinity
7->Exception
8->Infinity
9->-Infinity
10->compile time error

Good question. The principles to remember to be able to answer this question are:

- Division operation could be performed only on numeric values. Trying to divide non-numeric values will result in a compile time error
- Division of a integer value by zero will result in a RuntimeException (ArithmeticException of trying to divide by zero)
- Division of a floating type value by zero will result in infinity for non-zero numerator and NaN (Not a Number) if the numerator is 0

Good. But there is no trick in that, right? i.e. it is assumed everyone understands that! May be that is the reason Sahil didn't include that in the posted code

Good. But there is no trick in that, right? i.e. it is assumed everyone understands that! May be that is the reason Sahil didn't include that in the posted code

Hint: The answer is something that behaves slightly different from zero.

Good. But there is no trick in that, right? i.e. it is assumed everyone understands that! May be that is the reason Sahil didn't include that in the posted code

Hint: The answer is something that behaves slightly different from zero.

The answer is negative zero. This value is slightly different from the normal zero...