Arithmatic Exception
import java.io.*;
class ExceptionTryBlock{
public static void main(String args[])
{
float pi=3.143f;
float r,area;
try{
DataInputStream d=new DataInputStream(System.in);
r=Float.parseFloat(d.readLine());
area=pi*r*r;
System.out.println("The area of the Circle is" area);
}
catch(Exception e){}
}}
How can a program for area of a circle can throw arithmatic exception? I only know one arithmatic exception that is division by zero.plz help