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...

How can u create the Object of class Without using "New"
opertor?

Answer Posted / mohan reddy

In 3 ways we can able to create object without using "new"
operator.

1)Using a Static Factory Method
ABC.getInstance();
2)Using newInstance() method...
class A=(A)Class.forName("A").newInstance();
3)Using clone() method.

Is This Answer Correct ?    38 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between path and classpath variables?

965


What is composition in java?

1216


How will you print number in reverse (descending) order in BST.

943


How do I enable java in safari?

980


Is 0 a real number?

971


What is meant by object oriented programming – oop?

922


What is the maximum length of a url?

887


What is static class

1053


What is the difference between double and float variables in java?

1082


What is stack class in java?

985


difference between byte stream class and character stream class?

4484


List out five keywords related to exception handling ?

957


What is difference between string and stringbuffer?

993


What is the purpose of an interface?

982


Can we force garbage collector to run ?

1000