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

What is java autoboxing?

0 Answers  


What is the replace tool?

0 Answers  


does java support pointers?

0 Answers  


What is meant by anonymous class?

0 Answers  


What is the purpose of declaring a variable as final?

0 Answers  


What is nullpointerexception?

0 Answers  


Explain the relationship between the Canvas and Graphics class?

1 Answers  


Why are getters and setters used?

0 Answers  


Explain JPA in Java.

1 Answers  


What is slash r?

0 Answers  


Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?

5 Answers   Ericsson,


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

0 Answers  


Categories