Package p1

Source Code of p1.C5

package p1;

import java.util.concurrent.TimeoutException;

public class C5 {

  public static void m() throws TimeoutException {
    throw new TimeoutException();
  }

  public static void main(String[] args) {
    System.out.print("C5: ");
    try {
      m();
    } catch (TimeoutException ex) {
      // fine
    }
    System.out.println();
  }
}
TOP

Related Classes of p1.C5

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.