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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2010, 03: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, 2 views)



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
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 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


100 most searched terms
Search Cloud
2d arraylist java actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener in java addactionlistener java applications of oops could not create java virtual machine xp double format java double to int 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.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java java 2d arraylist java actionlistener java addactionlistener java convert list to map java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming help java sendkeys java two dimensional arraylist java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics two dimensional arraylist java writing ipod apps

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