• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

What the hell is a JAVA BEAN???  RSS feed

 
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sorry about the foul language in the subject but I am very frustrated. No matter how much I read I can't seem to get a good definition of what a java bean is. The only thing that I know is that a java bean is some kind of class written to some specification but it's not clear on how to determine whether a class can be considered a bean or not. I'm starting to feel like a real idiot. If there's anyone out there who can give me a definition of what a Java bean is, I would really appreciate it.
 
Bartender
Posts: 19668
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can find a precise definition at http://java.sun.com - but essentially, a JavaBean is a class that has a no-argument constructor and properties that can be set and retrieved via setXxxx() and getXxxx() methods given a property named "xxxx" - please note the change in capitalization, a process known as "introspection" works in conjunction with this convention.
A JavaBean may or may not be associated with a GUI element, depending on what it's intended to be used for. An ENTERPRISE JavaBean (EJB) carries the whole thing to a much higher degree of complexity, and there are several good books written on that topic.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!