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 / seven hills
true
false
because the value of Integer object should not be greater than 127...if u put<127 then always true
| Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of a parameter?
What does opcode mean?
What is int short for?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What are dot operator queries?
What is one third plus one third as a fraction?
What is the base class of all exception classes?
Is alive method in java?
Can a main method be overloaded?
How do you declare a destructor in java?
What is unicode datatype?
What is the size of string?
Are arrays primitive data types?
Is array a class in java?
How does multithreading take place on a computer with a single cpu?