Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
| Search | Today's Posts | Mark Forums Read
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2007, 10:06 PM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default A query about serialization

On page 527 of the book 'Beginning Java 2 JDK 5 edition' it is written that the class has to meet three basic conditions for an object of the class to be written to a stream. First two conditions are--

i) The class must be declared public.
ii)The class must implement interface 'Serializable'.

The second condition is obvious and can be understood well.However I was able to serialize a class that has default access in the package (not a public class).So I am not exactly sure what is meant by first condition.

Your response will be highly appreciated.

Thanks

---Vishram





Similar Threads
Thread Thread Starter Forum Replies Last Post
serialization taheernawaz ASP.NET 1.x and 2.0 Application Design 0 December 12th, 2007 03:32 AM
question about Serialization hertendreef ASP.NET 2.0 Basics 2 February 27th, 2007 04:03 PM
Hashtable for Serialization in C# sachin-csharp .NET Framework 2.0 0 July 27th, 2004 02:25 AM
T-SQL Serialization blueFrench Pro VB Databases 0 July 15th, 2004 08:01 PM
XML Serialization rajeshnerenki General .NET 0 June 14th, 2004 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.