Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adv and disadv of constructor and finalizer method  RSS feed

 
shobha devi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please tell advantages and disadvantages of constructors and finalizer methods in jav?
 
Campbell Ritchie
Sheriff
Posts: 55362
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are a "beginner" you should not use the finalize method.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disadvantage of constructors compared to what?
 
Campbell Ritchie
Sheriff
Posts: 55362
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please avoid abbreviations like adv and disadv.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!