Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Exception and Serialization Problems

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 Attached Files


Similar Threads

  1. Exception Errors
    By TIMBERings in forum Exceptions
    Replies: 1
    Last Post: December 10th, 2009, 02:13 AM
  2. serialization problem
    By Park in forum Object Oriented Programming
    Replies: 2
    Last Post: November 26th, 2009, 04:44 PM
  3. How to compile and run java program?
    By ebalari56 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 27th, 2009, 10:33 PM
  4. Error of "ClassNotFound Exception"
    By multicoder in forum Exceptions
    Replies: 3
    Last Post: July 1st, 2009, 03:58 PM
  5. Exception handling
    By AnithaBabu1 in forum Exceptions
    Replies: 6
    Last Post: August 27th, 2008, 10:37 AM