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

can any body body expalin best definitions & best real time exaples for opps concepts.

2214


How does map works in java?

940


What is the generic class?

903


What is array pointers ?

978


What is polymorphism in java? What are the kinds of polymorphism?

1004


What is a char in java?

976


What are the wrapped, classes?

1006


What are the 4 types of research methods?

872


What is the difference between dom and sax parser in java?

922


What happens when heap memory is full?

922


What is the purpose of garbage collection in java?

1042


What do you mean by chromounits in java8?

895


How do you change an int to a string?

946


Can we declare array without size in java?

958


What is string data type?

906