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 difference between length and length() method in java?
How many java versions are there?
What is difference between core java and java ee?
What is difference in between java class and bean?
What is the difference between preemptive scheduling and time slicing?
What is string pooling concept?
What are serialization and deserialization?
How do you sort a list in java?
What do you understand by soft reference?
Why we use protected in java?
Give the difference between the println method and sqrt method?
What is an inner class in java?
How are observer and observable used in java programming?
Does .length start 0 java?
Can you use this() and super() both in a constructor?