Define how objects are stored in java?



Define how objects are stored in java?..

Answer / Sujeet Sinha

In Java, objects are stored as instances of their classes on the heap. The memory allocated for an object contains not only the state (instance variables) but also metadata such as class name, instance variable names and data types, and references to other objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is array length in java?

1 Answers  


What is the difference between Object and Instance?

5 Answers   TCS,


What is private public protected in java?

1 Answers  


What is meant by final class, methods and variables?

3 Answers  


Can you have two constructors in java?

1 Answers  


Brief the life cycle of an applet.

1 Answers  


What is the use of default method in interface in java?

1 Answers  


What is ResourceBundle class?

1 Answers  


What is the difference between replace and replace all?

1 Answers  


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1 Answers  


Can I import same package/class twice?

1 Answers  


Can an interface extend another interface?

1 Answers  


Categories