Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Common Code in Object



Hi,

When a Java object is instantiated, will only the storage for the attributes of the class be allocated or will the code within the class be allocated and copied also. In other words, will the code be executed from the class and the data stored in the object's allocated memory?

Hope this makes sense.

Thanks,
Tracy