|
||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exception Errors | TIMBERings | Exceptions | 1 | 10-12-2009 06:13 AM |
| serialization problem | Park | Object Oriented Programming | 2 | 26-11-2009 08: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 |