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
How many java versions are there?
How can you read content from file in java?
Explain the use of sublass in a java program?
How can I right-justify a string?
hr interview how many minutes asking question
What is the difference between the file and randomaccessfile classes?
How many bits is a word?
Difference between static synchronization vs. Instance synchronization?
what do you understand by synchronization? : Java thread
What is the structure of java?
What java ide should I use?
What is ternary operator?
What is an object class?
What is the difference between array and array list in java?
How do singleton patterns work?