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 final class?
Can static methods access instance variables in java?
What is a functional interface?
Explain the selection sort algorithm?
Explain the importance of import keyword in java?
Are primitives objects?
Why we used break and continue statement in java?
What is a superclass?
Can we override tostring method in java?
What does index mean in java?
How many digits can a float hold?
Is java a pure object oriented language?
How you can force the garbage collection?
What is the difference between an object-oriented programming language and object-based programming language?
Does importing a package imports its sub-packages as well in java?