The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
May 2000

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:

Re: OOPS

Posted by P.Kavitha on June 20, 2000 at 9:03 AM

Hi,

The answer for your question is NO.
Seperate memory will not be allocated for
the code for different instances.

> Sir,
> I got a doubt in allocation of memory
> If we create two instance for a class which has
> class A
> {
> int a;
> void fn()
> {
> }
> }

> I Know java allocate seperate memory for member variable for
> both the instance.
> may i know whether it will allocate seperate memory allocation
> for Function for different class instances






Replies:

Sponsored Links



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