Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the difference between length and length() method in java?

1171


How many java versions are there?

1117


What is difference between core java and java ee?

946


What is difference in between java class and bean?

1161


What is the difference between preemptive scheduling and time slicing?

1109


What is string pooling concept?

1152


What are serialization and deserialization?

1316


How do you sort a list in java?

1074


What do you understand by soft reference?

1099


Why we use protected in java?

1022


Give the difference between the println method and sqrt method?

1131


What is an inner class in java?

1020


How are observer and observable used in java programming?

1078


Does .length start 0 java?

1062


Can you use this() and super() both in a constructor?

1034