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 static import in java? Explain
Why convert an applet to an application?
What is java util?
What the difference is between execute, execute Query, execute Update?
Where is jre installed?
What is difference between calling start() and run() method of thread?
Define an abstract class with reference to java.
What is the preferred size of a component in java programming?
Can a constructor be protected?
What are three advantages of using functions?
Explain the difference between arraylist and linkedlist in java?
Define a package.
How do you read and print a string in java?
What modifiers may be used with a top-level class?
Explain about features of local inner class?