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 things should be kept in mind while creating your own exceptions in java?

616


What are voids?

526


What is a class in java?

571


What is the use of System class?

598


How to store image in arraylist in java?

501






Can I learn java without any programming experience?

542


Can we serialize singleton class?

520


What is difference between stringbuffer and string?

484


Difference between string s= new string (); and string s = "abv";?

732


Compare java and python.

568


Explain about member inner classes?

577


Why do we use string?

569


How do you change an int to a string?

537


What is difference between fail-fast and fail-safe?

580


What is an object in java?

546