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 blank final variable?

557


Can we call thread start () twice?

507


what is heap memory?

649


What is hash code collision?

579


Can we override private constructor in java?

498






How to obtain a performance profile of java program

536


How to create an immutable class?

562


What is hashtable and explain features of hashtable?

552


Is java util regex pattern thread safe?

509


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1600


Define interface in java?

599


Why do we use threads in java?

556


What is a prefix function.write down a code to compute prefix function.

530


Can we convert integer to string in java?

588


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

531