This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes How does Hashtable attribute of a class get serilized? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How does Hashtable attribute of a class get serilized?" Watch "How does Hashtable attribute of a class get serilized?" New topic
Author

How does Hashtable attribute of a class get serilized?

devasis majhi
Greenhorn

Joined: Dec 29, 2012
Posts: 9
Elements in Hashtable get stored in an Array of Entry. i.e .transient Entry<K, V>[] elementData; elementData is a transient variable. Then how does a Hashtable attribute of a class get serialized ?

EX:-

class A
{
public Hashtable<String,String> ht;
}
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4164
    
  21

It has writeObject()/readObect() to customize the serialization process.


Steve
 
 
subject: How does Hashtable attribute of a class get serilized?
 
Similar Threads
Generics and casting
Arraylist and linklist !!
Using @Transient Annotation in the POJO class
How is serialization handled with transient variables defined in Collections ?
HashTable