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

What is the type of lambda expression?

1025


Can we increase size of array?

1031


What about member inner classes?

1096


Why arraylist is used in java?

1075


What is private public protected in java?

1034


In which language java is written?

982


What are the 8 data types in java?

995


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

963


What is method reference in java?

1144


What is core java called?

975


Explain thread life cycle in java?

1039


How to perform merge sort in java?

1060


What is the difference between Grid and Gridbaglayout?

1246


What are the advantages of compiled language?

1079


What is the difference between instanceof and isinstance?

1061