Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with understanding Exceptions  RSS feed

 
Serban Alex
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • 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.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12542
48
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
hope i've done this... but is there any quick examples to ilustrate exceptions and what they serve for?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!