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

true
true

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does || || mean in math?

519


What is Major and importance difference between for and foreach loop ?

579


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

9252


What is java util hashmap?

522


Is call by reference possible in java?

540






What is java object name?

553


Is upper case in java?

535


What is the difference between preemptive scheduling and time slicing?

595


How to sort a collection of custom Objects in Java?

604


What is a final class ?

608


What method is used to specify a container's layout in java programming?

550


What is purpose of keyword void?

569


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

843


Can we change the value of static variable?

504


Can you instantiate the math class?

604