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 |
How the threads are synchronized?
How the elements are organized in CardLayout?
What are examples of modifiers?
we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it?
how many ways to create Thread and which one is good? runnable interface ot Thread class?
What is a boolean in java?
Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.
What is a platform?
Explain java coding standards for interfaces?
Describe the term diamond problem.
What is navigable map in java?
Is a copy constructor?