Quantcast
Channel: Learn Java Programming
Viewing all articles
Browse latest Browse all 39

Java Exception propagation

$
0
0

A. Exception Propagation : Unchecked Exception Before explaining the concept of exception propagation , review the below code with care - class ExceptionPropagation{ void method3(){ int result = 100 / 0; //Exception Gere } void method2(){ method3(); } void method1(){ try{ method2(); } catch(Exception e){ System.out.println("Exception is handled here"); } } public static void main(String(...)

The post Java Exception propagation appeared first on Learn Java Programming.


Viewing all articles
Browse latest Browse all 39

Trending Articles