问题:
I understood, I think, that a "Bean" is a Java class with properties and getters/setters. 我认为,“ Bean”是具有属性和getter / setter的Java类。 As much as I understand, it is the equivalent of a C struct. 据我了解,它等效于C结构。 Is that true? 真的吗?
Also, is there a real syntactic difference between a bean and a regular class? 另外,bean和常规类之间是否存在真正的语法差异? Is there any special definition or an interface? 有没有特殊的定义或接口?
Basically, why is there a term for this? 基本上,为什么会有一个术语呢?
Also what does the Serializable
interface mean? 还有Serializable
接口是什么意思?
解决方案:
参考一: https://stackoom.com/question/DpJA/什么是JavaBean参考二: https://oldbug.net/q/DpJA/What-is-a-JavaBean-exactly
来源:oschina
链接:https://my.oschina.net/stackoom/blog/3215817