Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Java exception

Thread view: 
Amali - 16 Feb 2007 06:00 GMT
What are java exceptions? and why are they used?
voorth - 16 Feb 2007 08:40 GMT
> What are java exceptions? and why are they used?

... and why does this seem like a homework question?
Michael Rauscher - 16 Feb 2007 09:07 GMT
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
Mark Rafn - 16 Feb 2007 17:07 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.

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
murari garg - 17 Feb 2007 19:28 GMT
> 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
Boaz.Jan@gmail.com - 17 Feb 2007 23:14 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.