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


Please Help Members By Posting Answers For Below Questions

why Java does not support multiple inheritances?

706


What is meant by overloading?

590


What is the difference between normal report & matrix report?

573


What is the difference between abstract class and interface1? What is an interface?

566


Can we override data members in java?

632






What is ‘is-a ‘ relationship in java?

592


What is protected access modifier?

582


How to make object serializable in java?

555


How many arguments can a method have java?

544


Explain the difference between static and dynamic binding in java?

548


What is purpose of applet programming?

643


List out benefits of object oriented programming language?

489


Explain the significance of listiterator.

592


What is size_t?

510


Define "Access specifiers" in java.

612