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 functional interface in java?

515


What is command line argument in java?

608


Is java a virus?

534


What are the special characters?

538


Does A Class Inherit The Constructors Of Its Superclass?

538






How many types of variables are there?

674


Can we serialize static variables in java?

655


What is the use of default method in interface in java? Explain

551


Should you use singleton pattern?

523


Why is the main method declared static?

588


Can we clone singleton object in java?

569


What is the difference between a local variable and an instance variable?

552


Is java free for businesses?

589


Can we convert stringbuffer to string?

566


What is locale in java?

579