Meaningless Drivel is fun!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Runtime Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Runtime Exception " Watch "Runtime Exception " New topic

Runtime Exception

swarupa patil
Ranch Hand

Joined: Feb 22, 2006
Posts: 62
Hi Ranchers
I have doubt about the RuntimeException.If method1()1 use throws clause
and throws RuntimeException.The rule for exception handelling is calling method to method1() must either caught the exception or throws exception.
Is this code comile (compile)?why:why not;
public void method1()throws NullPointerException
public void method2()
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
RuntimeException, Error, and their subclasses are unchecked.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Runtime Exception
It's not a secret anymore!