How will you measure that int takes up only 32 bits in memory?

Answers were Sorted based on User's Feedback



How will you measure that int takes up only 32 bits in memory?..

Answer / umesh naik

System.out.println(Integer.SIZE);

it will print 32

System.out.println("Float.SIZE "+Float.SIZE);

it will print 32

System.out.println("Long.SIZE "+Long.SIZE);

it will print 64

Is This Answer Correct ?    0 Yes 0 No

How will you measure that int takes up only 32 bits in memory?..

Answer / sachin tyagi

by using random function which never generate value more
than 32 bits.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

Can we override the overloaded method?

0 Answers  


What is anagram in java?

0 Answers  


What do you mean by order of precedence and associativity?

0 Answers  


What do you mean by byte code?

0 Answers  


For technical interview question please sir send me because tomorrow my interview

1 Answers   FactSet Systems,






Can we restart a dead thread in java?

0 Answers  


Convert a BST into a DLL and DLL to BST in place.

0 Answers   Amazon,


Which keyword specify that a variable is effectively final ?

0 Answers  


What is the properties class in java programming?

0 Answers  


what is thread in Java ?

0 Answers  


What is the default size of load factor in hashing based collection?

0 Answers  


Where are local variables stored?

0 Answers  


Categories