Solved

Serialization and Vetor

Posted on 2006-07-17
7
212 Views
Last Modified: 2010-03-31
Hi All,

As we aware that Vector and ArrayList are serialized, should my business objects, which are going to be placed in the ArrayList, which will be passed to EJB methods be serialized?

What my doubt is since the ArrayList is serailized, is it necessary that the business objects which the ArrayList holds should be serialized?

Thanx.
0
Comment
Question by:hemanexp
7 Comments
 
LVL 4

Accepted Solution

by:
Meritor earned 64 total points
Comment Utility
Yes, All your business objects must be serialized in an ArrayList.
0
 
LVL 4

Expert Comment

by:Meritor
Comment Utility
because while ArrayList is being serialized, all objects in arraylist are being serialized by JVM.
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 62 total points
Comment Utility
>>is it necessary that the business objects which the ArrayList holds should be serialized?

They will be serialized if they are Serializable and all the objects they contain are Serializable
0
 
LVL 23

Assisted Solution

by:Ajay-Singh
Ajay-Singh earned 62 total points
Comment Utility
All the elements of the ArrayList would be serialized. The serilization would throw error if one/more elements doesn't follow Serializable interface.
0
 
LVL 30

Assisted Solution

by:mayankeagle
mayankeagle earned 62 total points
Comment Utility
yes, it is nested. All data members of the business objects should also be serialized and so on & so forth.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now