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 method in java with example?

907


Is there a way to increase the size of an array after its declaration?

1011


Can an object subclass another object?

1035


What are class types in java?

1035


Is arraylist zero based?

1014


How list contains works in java?

934


Why do we use regex?

961


If an object is garbage collected, can it become reachable again?

954


Is java a software?

904


Can a constructor have different name than a class name in java?

1097


What is memory leak and how does java handle it?

941


Give me example of derived data types.

1102


What is difference between jdk,jre and jvm?

1058


What is the independent variable in an experiment?

910


How do you take thread dump in java?

952