Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Cory Nelson   on Mar 15 In Java Category.

  
Question Answered By: Candace Foster   on Mar 15

JBK? You don't need anything special to write  or compile  a bean  (well,
you need the javac compiler which comes with the java  SDK). A bean is
just a Java class which conforms to a set of rules:

- Must have a default constructor
- Must have get and set methods for each read/write property
- Must use the JDK defined event structure for event handling

There may be other rules as well, such as requiring Serialization, but I
can't recall them at the moment. You may want to read the JavaBeans
specification ( java.sun.com/products/javabeans/docs/spec.html )
for full details.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to write bean Or get search suggestion and latest updates.


Tagged: