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
summing by date range
FreePBX: How to change the system recording for the outbound route password prompt
what is the best way to create a web page for a 20 item products to sell
SQL 2005: The query processor ran out of internal resources and could not produce a query plan.
DNS not working and AD users can't login. Any DNS experts out there??
Why isn't my external css background image displayed?
install Microsoft Office 2010 Professional plus edition on Windows XP
Managed PC Boot Agent has taken over my WIndows XP Pro computer
My computer will not boot. No Grub
SQL Server 2008