> What are java exceptions? and why are they used?
... and why does this seem like a homework question?
Amali schrieb:
> What are java exceptions? and why are they used?
Why not?
Amali - 16 Feb 2007 11:59 GMT
> Amali schrieb:> What are java exceptions? and why are they used?
>
> Why not?
yes ur right we have to find these iformation any how. so i have
searched the web, but i didn't any idea. so please tell me some web
sites to find these answers.
Andrew Thompson - 16 Feb 2007 12:09 GMT
> > Amali schrieb:> What are java exceptions? and why are they used?
>
[quoted text clipped - 3 lines]
> searched the web, but i didn't any idea. so please tell me some web
> sites to find these answers.
Here are some good search terms
<http://www.google.com/search?q=java+exception+tutorial>
Andrew T.
Michael Rauscher - 16 Feb 2007 12:34 GMT
>> Amali schrieb:> What are java exceptions? and why are they used?
>>
[quoted text clipped - 3 lines]
> searched the web, but i didn't any idea. so please tell me some web
> sites to find these answers.
Andrew already gave you a very good point to start.
Exceptions aren't hard to understand, really. To understand what
exceptions are and what they are used for it might be better to ask
*when* to use them.
Turn on Google, now.
Bye
Michael
>What are java exceptions? and why are they used?
In many ways, an exception is just an alternate return type from a method
invocation. It's declared in the method signature, like the normal return
type, throwing it exits the current method, like the return keyword.
There are a lot more details to it, which you should probably read in your
textbook.
--
Mark Rafn dagon@dagon.net <http://www.dagon.net/>
Lew - 16 Feb 2007 20:35 GMT
Amali <amalikarunanayake@gmail.com> wrote:
>> What are java exceptions? and why are they used?
>
> In many ways, an exception is just an alternate return type from a method
> invocation. It's declared in the method signature, like the normal return
> type, throwing it exits the current method, like the return keyword.
> There are a lot more details to it, which you should probably read in your
> textbook.
Or in any of the hits from
<http://www.google.com/search?q=what+is+a+Java+Exception>
GIYF.
- Lew
Alex Hunsley - 16 Feb 2007 20:54 GMT
>> What are java exceptions? and why are they used?
>
> In many ways, an exception is just an alternate return type from a method
> invocation. It's declared in the method signature, like the normal return
> type, throwing it exits the current method, like the return keyword.
Would also like to add: exceptions shouldn't be used in place of the
normal return mechanism: they are for exceptional circumstances, as they
are costly to set up.
lex
> What are java exceptions? and why are they used?
hi
exception are used in programme where the probability of making error
is more.
By using exception in your programme , youcan run your wrong
programme to some extends.
If you want to have good practice of exception than i recommand you
to
do the unsolved problems of " schaum series in java programming "
More Details : http://www.mcgraw-hill.com.sg/html/titleDetail.jsp?isbn=9780071420402.html
> What are java exceptions? and why are they used?
http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html
The java tutorial by Sun.
Its that easy.
Amali - 18 Feb 2007 06:59 GMT
On Feb 18, 5:14 am, "Boaz....@gmail.com" <Boaz....@gmail.com> wrote:
> > What are java exceptions? and why are they used?
>
> http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html
> The java tutorial by Sun.
> Its that easy.
Thank you for giving details information to find exception.
Andrew Thompson - 18 Feb 2007 08:20 GMT
> On Feb 18, 5:14 am, "Boaz....@gmail.com" <Boaz....@gmail.com> wrote:
>
> > > What are java exceptions? and why are they used?
..
>http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html
...
> Thank you for giving details information to find exception.
That (AFAIR) was the top listed entry in
the search I specified 2 days ago.
Did you ignore my reply?
Andrew T.
Amali - 18 Feb 2007 12:06 GMT
> > On Feb 18, 5:14 am, "Boaz....@gmail.com" <Boaz....@gmail.com> wrote:
>
[quoted text clipped - 9 lines]
>
> Andrew T.
I got information about exception using the link u have given.
Thanx