Why does javaBean serialize something that can be serialized without serialization? What are the effects of specific serialization?

  java, question

Why does javaBean serialize something that can be serialized without serialization? What are the effects of specific serialization?

It depends on your application scenario. The object needs to be persisted to disk, or needs to be transmitted over the network, then it needs to be serialized.
Add:
When a general program is running, it generates objects, which disappear with the stop of the program. However, if we want to save some objects (because they are objects, they have different characteristics), these objects still exist after the program is stopped, we can read the values of these objects when the program runs again, or use these saved objects in other programs. In this case, serialization of the object is required.