GeekInterview.com
Submitted Questions

Sizeofthe variable

Asked By: krishnaprasad587 | Asked On: Jun 7th, 2011

How to find the size of the (datatype) variable in Java?In C we use sizeof() operator for for finding size of data type

Answered by: Sandhya.Kishan on: Mar 27th, 2012

There is no any particular function in java to find the size of the variable,because java removes the need for an application to know about how much of space needs to be reserved for a primitive value, an object or an array with a given number of elements.

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: