?
Solved

what is synchronization and serialization in java

Posted on 2008-06-19
6
Medium Priority
?
1,322 Views
Last Modified: 2011-08-18
what is synchronization and serialization in java
0
Comment
Question by:HimanshuW
3 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

807 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