Note: (Restricted functionality due to obvious reasons!)

For Mobile-Ease ⇓

Minimal Code ( Raw-View ) :
class Excp { double div(int a, int b) throws Exception { return a/b; } } class Excp02 { public static void main(String zee[]) { double result = 0.0; Excp obj = new Excp(); try { result = obj.div(123,0); } catch(Exception e) { System.out.println("Invalid values"); } System.out.println("RESULT = "+result); } }