What is a JavaBean exactly?
Asked 07 September, 2021
Viewed 410 times
  • 62
Votes

I understood, I think, that a "Bean" is a Java class with properties and getters/setters. As much as I understand, it is the equivalent of a C struct. Is that true?

Also, is there a real syntactic difference between a bean and a regular class? Is there any special definition or an interface?

Basically, why is there a term for this?

Also what does the Serializable interface mean?

23 Answer