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 a java lambda expression?
What language is pass by reference?
Why is logger singleton?
Write a program based on Java script program.
How can we make a class singleton?
What is the use of coding?
Is 0 a prime number?
Explain the importance of throwable class and its methods?
What is append function?
What is object-oriented programming?
What is difference between static class and normal class?
what is comparable and comparator interface?
Why do we need wrapper classes?
Which language is java?
What is the vector class in java programming?