How will you measure that int takes up only 32 bits in memory?
Answers were Sorted based on User's Feedback
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 |
Answer / sachin tyagi
by using random function which never generate value more
than 32 bits.
| Is This Answer Correct ? | 0 Yes | 3 No |
How big is a gigabyte?
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?
What is the purpose of the system class in java programming?
What is meant by JVM? Is JVM platform independent or not?
What is the difference between reader/writer and inputstream/output stream?
can we declare private class in java file?
Is char * a string?
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?
What is run time allocation?
Name the packages in JDK?