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 return used for in java?

981


What are data types in programming?

950


Why is singleton class used?

993


Explain inner classes ?

1082


What are the advantages of compiled language?

1026


How do you create a null object?

1031


What is the difference between dom and sax parser in java?

932


Can interface be private in java?

953


Explain about interthread communication and how it takes place in java?

968


Can we write multiple catch blocks under single try block?

1045


What is super in java?

949


Can we override private constructor in java?

917


what is a thread pool in java and why is it used?

946


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

1038


What is the difference between access specifiers and access modifiers in java? 16

962