The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes same method in 2 classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "same method in 2 classes" Watch "same method in 2 classes" New topic
Author

same method in 2 classes

Vivek Nidhi
Ranch Hand

Joined: Aug 10, 2003
Posts: 133
Hello ,
I am bit confused on this logic java.lang.System and java.lang.Runtime both as the method called exit(), what is the need for this .Same as the gc() in both java.lang.System amd java.lang.Runtime.
thanks
vivek nidhi
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
They are same. Look at this thread for more details on gc(). The same explanation holds good for exit() also.


Mani
Quaerendo Invenietis
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: same method in 2 classes
 
Similar Threads
How to call a build.xml
How to run an executable placed on linux sever on a host with java program
java.lang.System vs java.lang.Runtime
Graceful clean up of daemon process
java.lang.OutOfMemoryError: PermGen space