How can we find the actual size of an object on the heap?

By ayush goel in 22 Sep 2023 | 12:39 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

How can we find the actual size of an object on the heap?

22 Sep 2023 | 12:39 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

 In Java, you can estimate an object's size on the heap using libraries like Java Object Layout (JOL) or by analyzing memory usage. There is no built-in method to directly determine an object's size.

23 Sep 2023 | 04:05 pm
0 Likes

Report

Please describe about the report short and clearly.