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
why Java does not support multiple inheritances?
What is meant by overloading?
What is the difference between normal report & matrix report?
What is the difference between abstract class and interface1? What is an interface?
Can we override data members in java?
What is ‘is-a ‘ relationship in java?
What is protected access modifier?
How to make object serializable in java?
How many arguments can a method have java?
Explain the difference between static and dynamic binding in java?
What is purpose of applet programming?
List out benefits of object oriented programming language?
Explain the significance of listiterator.
What is size_t?
Define "Access specifiers" in java.