Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
space allocation for class
Shubhada Nandarshi
Ranch Hand
Posts: 59
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi friends,
I have a doubt. When we declare an integer or float type variable, some amount of space is allocated to it on a heap so the values in that range are only valid values.
Is there any space allocation for user defined classes?
Thanks
Shubhada
Scott Johnson
Ranch Hand
Posts: 518
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is there any space allocation for user defined classes?
Do you mean memory needed to store an
object
?
The memory allocated for an object will depend on what members the class has.
Do you have a specific example?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
XSL transformation
So so so slow to run AVD
Getting problem in declaring static variable.
Changing JVM's Memory Allocation On The Fly
primitive Storage
More...