Java examples for Object Oriented Design:Exception
Catch Non Existent Exception
public class Main { public static void main(String[] args) { int x = 10, y = 0, z = 0; try {//from w w w. ja v a 2 s . co m z = x / y; } catch (Exception e) { // Handle the exception } } }