Go Back   Java Programming Forums > Java Standard Edition Programming Help > Exceptions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2010, 04:30 PM
Junior Member
 

Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
chrisych is on a distinguished road
Default Exception and Serialization Problems

Dear All,

I have some problems on using the exception and serialization.

1) Is ListException class used to handle the RuntimeException?

2) Is ListIndexOutOfBoundsException class used to handle the IndexOutOfBoundsException?

3) I can find an exception has been thrown to both of ListException and ListIndexOutOfBoundsException in add class (but not the get and remove classes) of ListInterface.java.

Is it because of the add class can be functional until all the system memory has been used up (unpredictable) and so an exception has been thrown to both of ListException and ListIndexOutOfBoundsException?

4) However, I can’t find an exception has been thrown to ListException (but ListIndexOutOfBoundsException only) in add class of ListReferenceBased.java.

What is the reason?

5) For the serialVersionUID, is it used for handling an exception only? What is the major purpose for setting it (able to run the program in cross platform under serialization)?

Please find the attached file for your reference.

Thank you very much!

Best Regards,
Chris.
Attached Files
File Type: zip lab.zip (2.2 KB, 1 views)



Reply With Quote Share this thread on Facebook
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception Errors TIMBERings Exceptions 1 10-12-2009 07:13 AM
serialization problem Park Object Oriented Programming 2 26-11-2009 09:44 PM
New guy with problems ebalari56 What's Wrong With My Code? 4 28-09-2009 02:33 AM
Help with ClassNotFound Exception multicoder Exceptions 3 01-07-2009 07:58 PM
Exception handling AnithaBabu1 Exceptions 6 27-08-2008 02:37 PM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java actionlistener java actionlistener jbutton addactionlistener addactionlistener java avatar hardware id convert double to integer java double format java double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java hardware id avatar java 2 dimensional arraylist java 2d arraylist java actionlistener java addactionlistener java button actionlistener java convert double to int java double format java double to int java double to integer java for beginner eclippse java format double java forum java forums java get mouse position java ipod touch java jbutton java list to map java mouse position java programming forum java programming forums java sendkeys java.lang.reflect.invocationtargetexception java.util.arraylist jbutton actionlistener jbutton java programming forums string to int java two dimensional arraylist java writing apps for ipod touch

All times are GMT. The time now is 09:18 PM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.