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 |
What is the loop in java?
explain the collection in java
Which one will take more memory: an int or integer?
What is the difference between conversation & casting?
wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
What is unicode full form?
Is a method a procedure?
What is the difference between class & structure?
Can we declare the static variables and methods in an abstract class?
What is the tradeoff between using an unordered array versus an ordered array?
Wha is the output from system.out.println(“hello”+null); ?
State the significance of public, private, protected class?