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 do you mean by inner class in java? Explain
What do you mean by collectors in java 8?
Why string is not thread safe?
What state is a thread in when it is executing?
What is stream api in java8?
What is the use of default method in interface in java? Explain
what is a working thread? : Java thread
Why main method is called first in java?
Can we split string with in java?
Can an interface extend a class?
What is the core java?
Is string a datatype?
Is there any limitation of using inheritance?
How many types of design patterns are there?
What is class array in java?