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
memory allocation
Using Abstract Class
Class
memory allocation
heap memory
java memory allocation for member variables and member functions
class
Class Loader
Class Loader
wrapper class
import package.subpackage.* does not work
Java memory leak
Class and Instance
Matrix Class
Matrix Class
Creating a memory leak with Java
Class Loader
heap and stack memory
Does hibernate support polymorphism?
Java Get Memory

Ads