File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes java bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java bean" Watch "java bean" New topic
Author

java bean

hari shukla
Greenhorn

Joined: Jan 31, 2013
Posts: 21
why we write no argument constructor in java bean,which is provided by compiler by default
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7064
    
  16

hari shukla wrote:why we write no argument constructor in java bean,which is provided by compiler by default

Where did you hear/read that you must?

Personally, I like to write explicit constructors for ALL my classes because I don't like relying on defaults; but it's just my preference.

BTW: Welcome to JavaRanch.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java bean
 
Similar Threads
What required to run Java Bean?
Java Bean?
JavaBeans Naming Rules
Drivel
Java class and Java Bean