Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

bean  RSS feed

 
Esaki Raja
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is my beans in java..what is the different type of beas in java
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Esaki, welcome to JavaRanch!

Have a look at: http://en.wikipedia.org/wiki/JavaBeans

Originally, Java Beans were meant to be a kind of software components, optionally with a GUI, that were programmed to certain conventions so that tools could easily use them for example in a graphical GUI editor.

A Java Bean is really just a Java class that conforms to the Java Bean conventions:
  • It must have a public no-args constructor.
  • It has getter and setter methods to set its properties.
  • It should be Serializable.

  • The standard Java API contains a package, java.beans, that has classes and interfaces that you can use to dynamically inspect beans (find out which properties a bean has, get and set them, etc.).

    There are also Enterprise Java Beans (EJB's), but that is something entirely different than "normal" Java Beans.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!