File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java bean

 
hari vallabh shukla
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why we write no argument constructor in java bean,which is provided by compiler by default
 
Winston Gutkowski
Bartender
Pie
Posts: 9497
50
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic