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 functional interface in java?
What is command line argument in java?
Is java a virus?
What are the special characters?
Does A Class Inherit The Constructors Of Its Superclass?
How many types of variables are there?
Can we serialize static variables in java?
What is the use of default method in interface in java? Explain
Should you use singleton pattern?
Why is the main method declared static?
Can we clone singleton object in java?
What is the difference between a local variable and an instance variable?
Is java free for businesses?
Can we convert stringbuffer to string?
What is locale in java?