The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Runtime class doubts..

Posted by G.Salai Sivamal on June 04, 2001 at 8:45 AM

> is Runtime class an Abstract class?
> the method gc() in the runtime class i abstract?
>
> Since an abstract class should have atleast one abstract method?
> why cant we say runtime class as abstract class?
> Even
> totalmemory();
> freememory(); are abstract classes in the Runtime class?
> anyone as an explanation for this?

The Runtime is not an abstract class..! abstract means incomplete class..! and it is not necessary that abstract class should have atleast one abstract method.

Since, the methods in Runtime class like, gc, totalmemory...are
native methods..not abstract methods..means the implementation will be in c++/c format.

regs
Sslai Sivamal.G






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us