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 the purpose of garbage collection in java?
What is the difference between an array and an array list?
How infinite loop is declared?
Can java inner class be static?
Differences between external iteration and internal iteration?
How does java pattern compile work?
Can we able to pass objects as an arguments in java?
What is difference between string and new string?
Write a java program to generate fibonacci series ?
What are the two categories of data types in the java programming language?
How many static init can you have?
What do you mean by flow of struts?
When should a function throw an exception?
Why is a string immutable?
Is int a class in java?