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 access modifiers can be used for variables?
Why main() method is public, static and void in java ?
What are facelets templates?
What is the importance of static variable?
How many classes can any class inherit java?
State the significance of public, private, protected class?
Explain constructors and types of constructors in java.
What is the maximum length of a url?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Why do we override tostring method in java?
How to reverse a string in java?
List the features of java programming language.
What does s mean in regex?
Difference between throw and throws?
What is internal iteration in java se 8?