?
Solved

what is synchronization and serialization in java

Posted on 2008-06-19
6
Medium Priority
?
1,301 Views
Last Modified: 2011-08-18
what is synchronization and serialization in java
0
Comment
Question by:HimanshuW
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Accepted Solution

by:
contactkarthi earned 336 total points
ID: 21825445
have a look at

http://forum.java.sun.com/thread.jspa?threadID=677826&messageID=3985833


Serialization in Java is the process of writing an object's state to an output stream.

Synchronization is what you do to ensure that only one thread at a time executes a critical block of code.
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 332 total points
ID: 21825484
0
 
LVL 5

Assisted Solution

by:gksinghiet
gksinghiet earned 332 total points
ID: 21833756
Synchronization and serialization are altogether different concepts.
Synchronization is done in a multi threaded environment to avoid dirty read.
Serialization is a way by which objects can be persisted to the file system.

For more refer following tutorial
http://java.sun.com/developer/technicalArticles/Programming/serialization/
http://java.sun.com/docs/books/tutorial/essential/concurrency/sync.html
http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html
http://www.javabeginner.com/object-serialization.htm
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month8 days, 6 hours left to enroll

766 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