• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Determining size of object?

 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we estimate the size of the object? i think here we dont have sizeOf operator.

EDIT by mw: Changed subject line to be descriptive (was "java classes").
[ February 22, 2007: Message edited by: marc weber ]
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The definition of size of the object depends on the object type.

So maybe you could be more specific over what size over what kind of object you want.
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Platform Performance has some tips on how to estimate the size of an object. Object size doesn't matter much to us because Java doesn't have functionality like pointer arithmetic that is frequently used in C/C++.
 
Willy Thorpe
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Boarding interesting about this subject.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic