• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

funda behind exception...handling

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am curious from the heading of your posting to know what a funda is?
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Ranch Hand
Posts: 657
Spring VI Editor Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"funda" is a relatively new word in English.


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

 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic