wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes What can be thrown 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 "What can be thrown" Watch "What can be thrown" New topic
Author

What can be thrown

manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
1 Error
2 Object
3 RunTimeException
4 Exception
5 Throwable

Answer given is 1,3,4,5.
Can we throw Error also. Please clarify.


MT
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
We can throw anything that is a subclass of Throwable and that includes Error, of course.


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

Joined: Jun 06, 2002
Posts: 1056
The correct spelling is "RuntimeException" -- no capital T. Where did you find this question?


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
 
Consider Paul's rocket mass heater.
 
subject: What can be thrown
 
Similar Threads
Junit errors.
UML
web services that invokes web services
Help ping pong game
JSP File Size Problem