Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Datatypes

807569May 15 2006 — edited May 15 2006
HI All,

The following query might look absurd in context to java, but I was asked this question at an interview with a very reputed organization. Please help and provide me a solution:

Is there a way to determine the size of primitive datatypes in java? (Like, C/C++ provides the sizeof() operator)

Thanks and regards,

Rajat Aggarwal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2006
Added on May 15 2006
2 comments
73 views