Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6986407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:48:17+00:00 2026-05-27T18:48:17+00:00

Let me put it in this way: What does JVM understands when it see

  • 0

Let me put it in this way:

What does JVM understands when it see a class implementing Serializable

What could be the code written to handle this? (If class is Serializable)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:48:18+00:00Added an answer on May 27, 2026 at 6:48 pm

    You don’t need to serialize (or) save state of every object. It doesn’t make sense. Another reason could be instead of saying, by default, authors might thought let programmer decide. Here is interesting discussion on this from java team.

    The decision to require that classes implement the
    java.io.Serializable interface was not made lightly. The design called
    for a balance between the needs of developers and the needs of the
    system to be able to provide a predictable and safe mechanism. The
    most difficult design constraint to satisify was the safety and
    security of Java classes.

    If classes were to be marked as being serializable, the design team
    worried that a developer, either out of forgetfulness, laziness, or
    ignorance might not declare a class as being Serializable and then
    make that class useless for RMI or for purposes of persistence. We
    worried that the requirement would place on a developer the burden of
    knowing how a class was to be used by others in the future, an
    essentially unknown condition. Indeed, our preliminary design, as
    reflected in the alpha API, concluded that the default case for a
    class ought to be that the objects in the class be serializable. We
    later changed our design only after security and correctness
    considerations convinced us that the default had to be that an object
    not be serialized.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's hard to put this into the title, so let me explain. I have
Note: Let me appologize for the length of this question, i had to put
Let me first put the code snippets here. I am just using the ASP.NET
Let's say I put the following code somewhere in a Master page in my
What does experimental research say about white space in code? Let me be specific:
Let me know if this is mathoverflow material, and I'll wend my way over
Let's put Heisenberg aside for a brief moment. How would I go about to,
Announced today. Descriptions so far are confusing. Let's put together a good starting point
How do I put off attribute access in Python? Let's assume we have: def
Let's say you have a class called Customer, which contains the following fields: UserName

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.