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 overload run() method in java?
What class is used to create Server side object?
what is the difference between sleep() and Wait()?
Can there be an abstract class with no abstract methods in it?
What is a functional interface?
Give a practical example of singleton class usage?
What are keywords and reserved words in java?
How to implement a multithreaded applet?
What is meant by design patterns?
What are inner classes or non static nested classes in java?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
How many java versions are there?