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 |
Can we override the overloaded method?
What is anagram in java?
What do you mean by order of precedence and associativity?
What do you mean by byte code?
For technical interview question please sir send me because tomorrow my interview
Can we restart a dead thread in java?
Convert a BST into a DLL and DLL to BST in place.
Which keyword specify that a variable is effectively final ?
What is the properties class in java programming?
what is thread in Java ?
What is the default size of load factor in hashing based collection?
Where are local variables stored?