When to use Java serialization Java interview questions and answers

1,617 views · Published 19 November 2012 · 1:52 · Indexed 18 October 2026

Channel: Interview DOT · 2012 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. You can submit your resume for right Job
http://www.interviewdot.com/upload-resume/uploadresume.htm
For more Interview questions and answers  - logon to www.InterviewDot.com
http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

Welcome to www.InterviewDot.com
When to use Java Serialization ? Java Interview Questions and Answers ? : 

When to use serialization ? 

Do not use serialization if you do not have to. A common use of serialization is to use it to send an object over the network or if the state of an object needs to be persisted to a flat file or a database. 

Deep cloning or copy can be achieved through serialization. This may be fast to code but will have performance implications .

The objects stored in an HTTP session should be serializable to support in-memory replication of sessions to achieve scalability .

 Objects are passed in RMI (Remote Method Invocation) across network using serialization .

You can submit your resume for right Job
http://www.interviewdot.com/upload-resume/uploadresume.htm
For more Interview questions and answers  - logon to www.InterviewDot.com
http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

More from this channel