javacodex.com
Java Examples
Java Examples
memu home questions

Try Block Without Catch

This is an example of a try block without a catch clause.

Source: (TryFinally.java)

// Using a try block without catch clause
public class TryFinally {
   public static void main(String[] args) {
      try {
        System.out.println("Inside try");
      } finally {
        System.out.println("Inside finally");
      }
   }
}
 

Contact: javacodex@yahoo.com