The Java Program: FinReturn.java

  1 import java.io.*;
  2 
  3 public class FinReturn {
  4 
  5    public static void main (String[] args)  {
  6       label: {
  7          try {   
  8             throw new Exception ();
  9          } finally {
 10             break label;  // "warning: finally clause cannot complete normally"
 11             return;       // "warning: finally clause cannot complete normally"
 12          }
 13          System.out.println ("End of try");
 14       }
 15       System.out.println ("End of labeled statement");
 16 
 17    }
 18 
 19 }