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
Does constructor be static?
What is the difference between an if statement and a switch statement?
What about abstract classes in java?
Explain the JDB in depth & command line.
What is the difference between a switch statement and an if statement?
How to declare an arraylist in java?
How dead lock situation occurs in java and how you can identify it?
Is cout buffered?
How to avoid memory leak in java?
How is string stored in java?
What is volatile data type?
What are encapsulation, inheritance and polymorphism?
What is encapsulation in java?
What are decalarations?
What is a singleton factory?