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

using "Singletone Design pattern" we can prevent class creating multiple objects.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which methods cannot be overridden in java?

984


How does the java compiler work?

970


What are the types of java?

1091


What are the wrapped, classes?

1047


What are the different ways of implementing thread? Which one is more advantageous?

977


Why does java does not support multiple inheritance? Explain

970


What is the function of java?

1003


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1051


What is Java Reflection API? Why it’s so important to have?

1154


What best practices should you follow while writing multithreaded code in java?

1056


What is difference between hashset and hashmap in java?

1004


Are maps ordered java?

949


What is assembly used for?

1016


What is the final access modifier in java?

1075


Is it possible to specify multiple jndi names when deploying an ejb?

993