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 method in java with example?
Is there a way to increase the size of an array after its declaration?
Can an object subclass another object?
What are class types in java?
Is arraylist zero based?
How list contains works in java?
Why do we use regex?
If an object is garbage collected, can it become reachable again?
Is java a software?
Can a constructor have different name than a class name in java?
What is memory leak and how does java handle it?
Give me example of derived data types.
What is difference between jdk,jre and jvm?
What is the independent variable in an experiment?
How do you take thread dump in java?