File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ////round-up Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "////round-up" Watch "////round-up" New topic
Author

////round-up

chao-long liao
Ranch Hand

Joined: Jul 29, 2001
Posts: 78
An exception can be caught by a catch block with an argument type that is a superclass of the thrown exception??
Ans:True
What's the meaning of the above statement?
I can't get what it says.
manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
Hope this code helps!!


[ August 07, 2002: Message edited by: Murthy Ram ]

MT
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Murthy,
the intention of your code is good but it won't compile unless you remove the second catch block !!
The compile error is:


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
I commented out that out Val!! But, I dont know, why it came down to a new line. I think, I might clicked enter there... I will edit the post again!!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ////round-up
 
Similar Threads
why JMX can not stop
WA #1.....word association
void return type in JSP expression
counting algorithm
Java ranch rules roundup