Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java try...finally block

class Main {
  public static void main(String[] args) {
    try {
      int divideByZero = 5 / 0;
    }

    finally {
      System.out.println("Finally block is always executed");
    }
  }
}
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #Java #block
ADD COMMENT
Topic
Name
1+2 =