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


Please Help Members By Posting Answers For Below Questions

what is static import in java? Explain

561


Why convert an applet to an application?

624


What is java util?

541


What the difference is between execute, execute Query, execute Update?

378


Where is jre installed?

597






What is difference between calling start() and run() method of thread?

565


Define an abstract class with reference to java.

582


What is the preferred size of a component in java programming?

545


Can a constructor be protected?

536


What are three advantages of using functions?

540


Explain the difference between arraylist and linkedlist in java?

489


Define a package.

574


How do you read and print a string in java?

530


What modifiers may be used with a top-level class?

578


Explain about features of local inner class?

605