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 volatile data type?
How to reverse a string in java?
Explain Linked HashSet
What is reflexive association?
Difference between String & StringBuffer
16 Answers IBM, Infosys, Tech Mahindra, Wipro,
how can i connect to database in a applet ?
Can we use this () and super () in a method?
How does indexof work?
What is initial size of arraylist in java?
How do you sort arraylist in descending order?
What is nested interface?
What is the association?