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
What are voids?
Give an example of call be reference significance.
Which collections are thread safe in java?
What is overriding in java?
Write a java program to print fibonacci series?
What is jit compiler in java?
Can a class be declared as static?
What are the main differences between the java platform and other platforms?
Explain the hierarchy of java exception classes?
What is the main advantage of passing argument by reference?
What are the major drawbacks of external iteration?
Is double bigger than float?
What is constant in programming?
How does remove work in java?
What is difference between stringbuffer and string?