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 / ravindra

true
true

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a type parameter in java?

532


What is polymorphism java example?

548


Which is the best approach for creating thread ?

725


What is locale?

605


What is the purpose of static methods and variables?

533






What is meant by oops concept in java?

508


What are access specifiers available in java?

579


What is flag in java?

535


Is binary a low level language?

510


What is a consumer in java?

568


How do I type unicode?

540


What is passing by reference in java?

543


Can an object subclass another object?

556


Why we go for collections in java?

553


What do you know about java?

525