a java class that follows certain design conventions is called____________.
-
a java class that follows certain design conventions is called____________.
-
@cyberian said in a java class that follows certain design conventions is called____________.:
a java class that follows certain design conventions is called____________.
A Java class that follows certain design conventions is called a JavaBean.
Characteristics of a JavaBean:
- Private properties: The class has private fields (properties) that represent the state of the object.
- Public getter and setter methods: The class provides public methods to access and modify the properties. These are usually named
getPropertyName()andsetPropertyName(). - No-arg constructor: The class provides a public no-argument constructor.
- Serializable: The class should implement the
Serializableinterface, allowing it to be serialized.
JavaBeans are used for encapsulation and are commonly used in development frameworks like JavaServer Pages (JSP) for managing user interface components and data.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
















[/floatRight]






