Java Learners Hub
A place for coders and developers to share, learn and grow together.
How can we get memory allocated to object when it is created? Is there any method as sizeOf() which is in CPP?
Java object allocation and construction are tied together, it is impossible to use an allocated but uninitialized object instance.
Java does not provide anything like C's sizeof()
Okk thank you