A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
adv and disadv of constructor and finalizer method
shobha devi
Greenhorn
Joined: Mar 11, 2009
Posts: 11
posted
Aug 12, 2010 04:35:50
0
can anyone please tell advantages and disadvantages of constructors and finalizer methods in jav?
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32654
4
posted
Aug 12, 2010 04:41:16
0
If you are a "beginner" you should not use the finalize method.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Aug 12, 2010 05:38:25
0
Disadvantage of constructors compared to what?
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32654
4
posted
Aug 12, 2010 06:36:18
0
Please avoid abbreviations like
adv and disadv
.
I agree. Here's the link:
http://aspose.com/file-tools
subject: adv and disadv of constructor and finalizer method
Similar Threads
shutting down virtual marchine and Shutdown Hooks
Doubt on finalize()
finalize() method of garbage collection...HELP needed....
Finalizer Method
Why finalize() method is called by the JVM only once?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter