What does sizeof return?



What does sizeof return?..

Answer / Satyaprakash Singh

In Java, there is no 'sizeof' operator. Instead, you can determine the size of an array or object at runtime using methods like Array.length for arrays and getClass().getDeclaredFields() for objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Name few java util classes introduced with java 8 ?

1 Answers  


Can we use different return types for methods when overridden?

1 Answers  


What is the difference between Grid and Gridbaglayout?

1 Answers  


What is left shift and right shift?

1 Answers  


Why should we use java?

1 Answers   IBM,


State differences between C and Java?

1 Answers   Deloitte, JPMorgan Chase,


What are different types of control structures?

1 Answers  


What are advantages and disadvantages of OOPs?

1 Answers   Amdocs,


Is java a virus?

1 Answers  


What is meant by overloading?

1 Answers  


Why to give the file name same as the public class name in java?

3 Answers  


How does marker interface provides functionality to the implemented class ? or How dose maker interface gets the functionalities as serialization or cloning.

4 Answers   Cap Gemini,


Categories