Alex Rivera | Logout

Why is there no sizeof in Java?

Asked 2011-12-01T18:21:52.440
13

For what design reason is there no sizeof operator in Java? Knowing that it is very useful in C++ and C#, how can you get the size of a certain type if needed?

Edit
Report

1 Answer

0

Memory management is done by the VM in Java, perhaps this might help you: http://www.javamex.com/java_equivalents/memory_management.shtml

answered 2011-12-01T18:25:53.590

Your Answer