How will you measure that int takes up only 32 bits in memory?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sachin tyagi
by using random function which never generate value more
than 32 bits.
| Is This Answer Correct ? | 0 Yes | 3 No |
How do you make a thread in java?
Explain about interrupt() method of thread class ?
can rmi and corba based applications interact ?
Mention some features of java?
Explain method overloading and overriding?
What is boolean flag in java?
What is map and hashmap in java?
What do you understand by the term wrapper classes?
What is the difference between class & object?
What is void class in java?
Why object class is super class for every class in java?
What are legal modifiers that we can use to declare an inner class?