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

What is difference between word and integer?

1075


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1079


Can a constructor be made final?

1106


Do you know why doesn't the java library use a randomized version of quicksort?

950


Can we compare two strings in java?

1018


What are the differences between abstract class and interface?

1069


What is pangram in java?

1010


What is string english?

1013


What is the final access modifier in java?

1075


What is the difference between stringbuffer and stringbuilder?

1049


Why do we need wrapper classes?

1066


What are the two ways of implementing multi-threading in java?

1499


Can an interface have a constructor?

966


When does an object becomes eligible for garbage collection in java?

1060


What is hash table in java?

1011