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?
Edit: If you can be so kind and add information regarding the Serializable
interface, and what it means, to your answer, I'd be very grateful.
转载于:https://stackoverflow.com/questions/3295496/what-is-a-javabean-exactly