• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

same method in 2 classes

 
Vivek Nidhi
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are same. Look at this thread for more details on gc(). The same explanation holds good for exit() also.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic