• 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

Problem with understanding Exceptions

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a greenhorn and I have a problem with understanding Exceptions in java.
Can you show me a basic easy example from where I can get to understand what is this all about?

This is my first post so be gentile
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, welcome to the ranch!

One of the official types will be around soon to ask you to review the name policy unless you beat them to it. Run back to your profile and put a real (sounding) first and last name in there.

I'm going to point you to a book: Thinking In Java. You can read it free online. The chapter on exceptions is better than anything I'd think up.

Let us know if that helps.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stan is correct - we do have an official Naming Policy. We require a real sounding first AND last name, separated by a space, although an initial for a first name is ok.

Please go here and change yours.

Thanks
 
Serban Alex
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hope i've done this... but is there any quick examples to ilustrate exceptions and what they serve for?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, to really make sense of them, you need more than a quick example; that's why you've been pointed to a book chapter. Maybe you'd like this section of the Java Tutorial better.
reply
    Bookmark Topic Watch Topic
  • New Topic