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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of garbage collection in java?

817


What is the difference between an array and an array list?

693


How infinite loop is declared?

724


Can java inner class be static?

729


Differences between external iteration and internal iteration?

825






How does java pattern compile work?

723


Can we able to pass objects as an arguments in java?

755


What is difference between string and new string?

720


Write a java program to generate fibonacci series ?

777


What are the two categories of data types in the java programming language?

697


How many static init can you have?

883


What do you mean by flow of struts?

977


When should a function throw an exception?

787


Why is a string immutable?

734


Is int a class in java?

712