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 is use of static method?
How will you reverse a link list without using recursion?
How is garbage collection controlled?
What does nullpointerexception mean?
What is a stringbuilder?
What are computer functions?
Can we increase array size dynamically in java?
What is finalize() function in java?
What do you understand by overloading and overriding in java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is a native method in java programming?
What are the 4 types of characters?
Explain the difference between an object-oriented programming language and object-based programming language?
In which language java is written?
What does || mean in vectors?