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
Explain illegalmonitorstateexception and when it will be thrown?
What are packages in java?
Why string is called as immutable?
How do you control extraneous variables?
What do u mean by variable?
Is 0 true or is 1 true?
Why set do not allow duplicates in java?
What is the unit of plancks constant?
What is the synonym of procedure?
How do you remove spaces in java?
Can java arraylist hold different types?
Is map ordered in java?
Can a boolean be null java?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What is keyword in oop?