public class Test
{
public static void main(String ar[])
{
Integer a = 10;
Integer b =10;
Integer c = 145;
Integer d = 145;
System.out.println(a==b);
System.out.println(c==d);
}
}
Answer Posted / prashanth
true
false
The Buffer size of Integer class is -128 to 127
Except this range in all remaining cases a new object will be created.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How does linkedlist work in java?
Can singleton class be serialized?
What is the size of int in 64-bit jvm?
Why collection is called framework in java?
What are the methods of object class ?
What is a java object and java application?
Explain about anonymous inner classes in java?
What does three dots mean in java?
What are thread groups?
What is the difference between array and array list in java?
What is token in java?
Why do people says “java is robust”?
Does constructor return any value?
What does %4d mean in java?
What are disadvantages of java?