Does memory for Class or Object?

Does memory for Class or Object?

Does memory for class(methods & instance variables)allocated without it's object creation?If no,then The main() itself has associated with a class for which there is no instance creation,how methods in main()(which intern in some class)are accessible?

View Answers

Ads









Related Tutorials/Questions & Answers:
Does memory for Class or Object?
What does it mean that a class or member is final?
Advertisements
Why does Java provide both abstract class as well as interface
Memory
memory
memory management
Class
memory layout
Objects
memory management
Memory Allocation
Using Abstract Class
Class
memory allocation
memory allocation
java memory allocation for member variables and member functions
heap memory
class
Class Loader
Class Loader
wrapper class
import package.subpackage.* does not work
Class and Instance
Java memory leak
Matrix Class
Matrix Class
Class Loader
Creating a memory leak with Java
Does hibernate support polymorphism?
heap and stack memory
What is a pointer and does Java support pointers?

Ads