Can anyone explain the exception concept in this JAVA program?
public class new
{
public static void main(String args[])
{
String name;
BufferedReader reader;
reader=new BufferedReader(new InputStreamReader(System.in));
System.out.print("\n What is your name?");
try
{
name=reader.readLine();
System.out.println("hello,"+name+"!");
}
catch (IOException ioe)
{
System.out.println("I/o exception error");
}
}
}
can anyone explain the exception concept in this program?????