It's not a secret anymore!
The moose likes Beginning Java and the fly likes adv and disadv of constructor and finalizer method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "adv and disadv of constructor and finalizer method" Watch "adv and disadv of constructor and finalizer method" New topic
Author

adv and disadv of constructor and finalizer method

shobha devi
Greenhorn

Joined: Mar 11, 2009
Posts: 11
can anyone please tell advantages and disadvantages of constructors and finalizer methods in jav?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43381
    
  32
If you are a "beginner" you should not use the finalize method.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Disadvantage of constructors compared to what?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43381
    
  32
Please avoid abbreviations like adv and disadv.
 
Consider Paul's rocket mass heater.
 
subject: adv and disadv of constructor and finalizer method
 
It's not a secret anymore!