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

Is boolean a wrapper class in java?

1100


How many bytes is a string java?

1071


Can we inherit a class with private constructor?

1175


Compare overloading and overriding?

1056


What is tcp and udp?

1068


Why char array is favored over string for the storage of passwords?

1138


What is the purpose of declaring a variable as final?

1008


What are reference variables in java?

1175


What is size () in java?

1148


Explain the selection sort algorithm and state its time complexity?

1067


What is fail fast in java?

1245


How does java enable high performance?

1197


What are the legal parameters?

1060


What is one third plus one third as a fraction?

993


Why 1 is not a prime number?

1074