Skip to content

Instantly share code, notes, and snippets.

@bhavin192
Last active August 2, 2016 09:53
Show Gist options
  • Save bhavin192/fdf5a31b8a12d4f4cc9c476ef26a04ad to your computer and use it in GitHub Desktop.
Save bhavin192/fdf5a31b8a12d4f4cc9c476ef26a04ad to your computer and use it in GitHub Desktop.
class Main{
public static void main(String args[]){
try{
int d = 7 / 0;
}
catch(Exception e){
System.out.println(e);
}
}
}
/*
////////////////////////////////////////
D:\inp>java Main
java.lang.ArithmeticException: / by zero
////////////////////////////////////////
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment