It may be a stupid question but as i was going to create a arithmetic exception case i.e 44/0 ... i created this below program
public class Simple{
public static void main(String args[]){
float a = 78.0f;
float b= 0.0f;
float c= a/b;
System.out.println(c);
}
}
Result :
Infinity
But the Positive Infinity is a final static field in the Float Wrapper class. So does that means that every primitive is autoboxed to wrapper class object at runtime? If not , then how came it returned infinity?