Saturday, September 5, 2009

SCJP Questions

# QUESTION 51:
Exhibit:
1 import java.io.IOException;
2 public class ExceptionTest(
3 public static void main (String[]args)
4 try (
5 methodA();
6 ) catch (IOException e) (
7 system.out.printIn("Caught IOException");
8 ) catch (Exception e) (
9 system.out.printIn("Caught Exception");
10 )
11 )
12 public void methodA () {
13 throw new IOException ();
14 )
Solve it and check resutlt

0 comments:

Post a Comment

 

About

Site Info

Information Source

Academy of JAVA by Rajesh Rolen Copyright © 2009 Community is Developed by Rajesh Kumar Rolen WebSite

/* tracking code by yahoo login */