This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61090
    
  66

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: 61090
    
  66

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why Does JavaBean Require A No Argument Constructor?