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

Why java applets are more useful for intranets as compared to internet?

1127


Can we write multiple catch blocks under single try block?

1142


What is java life cycle?

1046


How to overcome the exception object reference not set to an instance of object?

1202


What is the difference between class & structure?

1313


What is formatted output?

1016


What is the relationship between class and object?

1091


What are passing parameters?

1141


What is string pool?

1213


Can we create object of static class?

1076


Can inner class final?

1157


Explain the importance of throwable class and its methods?

1089


What is parsing a sentence?

1162


Why is the main method static?

1212


How many types of keywords are there?

1032