public class myclass
{
// Main method
public static void main (String args[])
{
// Stream to write file
try {
int a=100;
int b=a/0;
System.out.println(b);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
This my code i want to Print what Evre Exception is coming in E:\logfile.txt. please help me i am Unable to do this .