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 |
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Is java good for beginners?
How do you create a bulleted list?
what is bytecode ?explain in detail and watz the difference between bytecode and machine code?
how would you implement a thread pool? : Java thread
What is singleton class?
16 Answers 3i Infotech, 7 Seas, ABC, Amdocs, Cap Gemini, Oracle, Persistent, TCS, Techforza,
In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ?????
What is reflexive association?
What is an immutable object?
Why pass by reference is not possible in java?
What is string and example?
Explain about collection interface in java?