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 do you sort words in java?
What is the mapping mechanism used by java to identify IDL language?
Tell me a few examples of final classes defined in Java API?
Is string is a keyword in java?
Why heap memory is called heap?
What is a map in java?
How to check if linked list contains loop in java?
Explain when classnotfoundexception will be raised ?
What are exceptions
Can we override tostring method in java?
What do you mean by checked exceptions?
Can a final variable be manipulated in java?
Does string isempty check for null?
Does a class inherit the constructors of its superclass in java programming?
What is the best way to findout the time/memory consuming process?