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

true
false

The Buffer size of Integer class is -128 to 127
Except this range in all remaining cases a new object will be created.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does finally block differ from finalize() method?

997


What is the use of parse function in java?

919


What is a parameter in a function?

950


What is number data type?

965


How many bytes is a string in java?

925


What is unicode in java?

882


Can an unreferenced object be referenced again?

1134


What is the purpose of garbage collection in java? When is it used?

995


What do you understand by overloading and overriding in java?

1011


What is a copy constructor in java?

1047


What is preparedstatement in java?

974


What is pass by value?

891


What is use of map in java?

948


What is the difference between reader/writer and inputstream/output stream?

1018


What is string english?

956