什么是JavaBean?

ぐ巨炮叔叔 提交于 2020-04-06 08:22:15

问题:

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!