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

How many digits can a float hold?

955


what is the significance of listiterator in java?

1039


What is JVM and is it platform independent?

998


Compare overloading and overriding?

965


How do you identify if jvm is 32-bit or 64-bit from java program?

916


What is the static method?

1032


What is factor r?

920


What do you mean by an object in java?

1082


What is abstract class? Explain

982


What environment variables do I need to set on my machine in order to be able to run java programs?

966


How to use string tokenizer class.

1139


What is __ init __ functions?

1047


Can we clone singleton object?

1015


How do you include a string in java?

936


Can we override private method?

1046