Microsoft
Software
Hardware
Network
Question : Java small object size
Could some one give a rough estimation how big size could be for small object.
Person{
int name;
int age;
}
Female extends Person{
boolean: isMarried
}
Male extends Person {
SomebusinessMethod{
Some objects creation. execution
}
}
1) How rough size of a Person?
2) If females and male is created, since male has many business logic, does male object would be larger than female
3) I want to know a) how is overhead size of an object?
b) is some object has more business logic, instance creation, takes more memory than a simple object?
Answer : Java small object size
1) ~ 10-20 bytes
2) no, methods are part of the class not the instances
3a) ~ 10 bytes I think
3b) see 2.
Random Solutions
What is the trick to using a checkbox, or a radio to trigger jQuery toggle() ?
support sql server 2005 on a mac pro notebook?
Windows 7 Explorer Not showing all image icons/thumbnails
Was Noach's wife idolizer woman?
TSQL Query - retrieving data for use with virtual listview
Managing exchange 2007 through active directory
LINQ problem, get data from var
exchange 2007/Route mail to ISP if account is not local.
How can I run a stored procedure in ms sql server 2008 from excel 2003 vba
how can i determine window size using javascript and then use it as table width and height ?