Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How big is a gigabyte?

0 Answers  


wht is customised exception?

1 Answers   Logica CMG, Novell, Prudential,


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

0 Answers   CDAC,


What is the purpose of the system class in java programming?

0 Answers  


What is meant by JVM? Is JVM platform independent or not?

0 Answers   Wipro,


What is the difference between reader/writer and inputstream/output stream?

0 Answers  


can we declare private class in java file?

13 Answers  


Is char * a string?

0 Answers  


what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this

11 Answers   IBM, L&T,


Difference between a Scrollbar and a ScrollPane?

1 Answers  


What is run time allocation?

0 Answers   Fidelity,


Name the packages in JDK?

2 Answers  


Categories