File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

funda behind exception...handling

 
jaspal singh
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

wanted to know:

do exception only arise at runtime?

what are checked and unchecked exceptions?

what are Errors?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Exceptions occur only at runtime.

Exceptions and Errors are both derived from Throwable (in java.lang).

"Checked" exceptions are those for which the compiler enforces either declaration or handling. All subclasses of Exception -- other than RuntimeExceptions and its subclasses -- are checked. (See bold below.)

RuntimeExceptions (e.g., bugs resulting in a NullPointerException) and Errors, or subclasses of these, are not checked and do not need to be declared or handled.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For detailed information, see the "Error Handling with Exceptions" chapter in Bruce Eckel's Thinking in Java...

http://www.faqs.org/docs/think_java/TIJ311.htm
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am curious from the heading of your posting to know what a funda is?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do exception only arise at runtime?


In java tiger ( 5.0 ) can throw in compile time.




what are Errors?


Errors is uncheck exception.

An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions. The ThreadDeath error, though a "normal" condition, is also a subclass of Error because most applications should not try to catch it.

A method is not required to declare in its throws clause any subclasses of Error that might be thrown during the execution of the method but not caught, since these errors are abnormal conditions that should never occur.
 
Stuart Ash
Ranch Hand
Posts: 637
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcus,

"funda" is a relatively new word in English. It means "the underlying idea", the "fundamental reason/principle".

Stuart.



Originally posted by Marcus Green:
I am curious from the heading of your posting to know what a funda is?
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"funda" is a relatively new word in English.

Other relatively new English words include "ur", "bcos", and "sth".

 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java tiger ( 5.0 ) can throw in compile time.
Thats really good. Can you be more clear.
For example , will the compile check for exceptions like OutOfBounds Exception , etc at compile time ?
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Steve is correct, it is not a word but a casual contraction. If you intention is to commmunicate, or to pursuade others to communicate with you I stongly urge you use complete words. Note that many, many people using these forums do not have English as a first language or even your particular version of English so for your own benefit in getting results, use a standardized English in technical communications.

When chatting with people U kno, U Can Uze eny variationz you like and you will be thort of as L33t d00d.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic