KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > TryCatch3


1 public class TryCatch3 {
2
3     public static void main(String JavaDoc [] args){
4         new TryCatch3().run();
5     }
6     public void run(){
7         try {
8             throw new RuntimeException JavaDoc();
9         }
10         catch(Exception JavaDoc e){
11             System.out.println(e);
12         }
13     }
14 }
15
Popular Tags