Java

Monday, June 30, 2014

Can you serialize static fields of a class?

Since static fields are not part of object state, 
they are part of class, serialization ignores the static fields.
Posted by Ravikiran at 2:47 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Ravikiran
View my complete profile

Blog Archive

  • ►  2022 (5)
    • ►  March (5)
  • ►  2015 (1)
    • ►  April (1)
  • ▼  2014 (59)
    • ►  December (5)
    • ►  October (3)
    • ▼  June (8)
      • Can you serialize static fields of a class?
      • what happens when visibility of public method is r...
      • String literal pool
      • 1) Why String is immutable in java?
      • how to crate thread class without extending Thread...
      • User defined Checked and User defined unchecked e...
      • How hashmap works in java
      • What do you understand by iterator fail-fast prope...
    • ►  April (1)
    • ►  March (5)
    • ►  February (24)
    • ►  January (13)
Simple theme. Powered by Blogger.