difference between java bean and java class?

前端 未结 2 516
独厮守ぢ
独厮守ぢ 2020-12-31 03:56

I am new to the JSP and server side programming. Till now I am working with Servlets and java classes. I am segregating my application (as per MVC model) with the help of ja

2条回答
  •  一向
    一向 (楼主)
    2020-12-31 04:38

    The JavaBeans specification defines the type JavaBeans components as "reusable software components". A component is a simple Java Bean Class Java respects certain conventions about method naming, construction and behavior. Adherence to these conventions makes it possible to use, reuse, replace and connect Java Beans for development tools. The beans must be "Serializable"In order to save and restore instances of this class.

提交回复
热议问题