aspose file tools*
The moose likes Beginning Java and the fly likes Why Does JavaBean Require A No Argument Constructor? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why Does JavaBean Require A No Argument Constructor? " Watch "Why Does JavaBean Require A No Argument Constructor? " New topic
Author

Why Does JavaBean Require A No Argument Constructor?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Why does a JavaBean require a no argument constructor?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61430
    
  67

Not much to do with JSP, per se.
Moving to Java in General (beginner).
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61430
    
  67

So that, given just the class name of the bean. an instance can be constructed. If the constructor required parameters, the instantiator would have no idea what values to use.
bear
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why Does JavaBean Require A No Argument Constructor?