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 with out new operator

Answer Posted / bindhu

As my opinion, we can create object of String using 2 ways:
String s=new String("java");
String s="java";

in Other way ,we can clone an object,that will create a
new copy of an object.

or using Class.forName();( Not Sure....)

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are wrapped classes in java programming?

1050


What classes of exceptions may be caught by a catch clause in java programming?

1169


What are three advantages of using functions?

1002


Can keyword be used as identifier?

950


List the interfaces which extends collection interface?

937


How do you pass by reference?

1036


Which of the following is not an isolation level in the JDBC

2121


What is the difference between hashset and treeset in java?

1053


Are arrays static in java?

1041


What is the meaning of variable in research?

1006


List some important characteristics on jre

1063


What are the four versions of java?

1007


What do you understand by classes in java?

998


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

958


What are the data types supported by java?

1014