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 different data types?

1022


What is the difference between a checked and an unchecked exception?

996


What is the maximum size of hashmap in java?

1003


What is exception handling in java?

1035


What are the default and parameterized constructors?

1056


How many arguments can a method have java?

1025


Do I need to import java.lang package any time? Why?

1387


What is difference between static and final?

1068


What are operators and its types?

1068


How do you control extraneous variables?

915


What is integer parseint?

990


Why we used vector class?

1069


What is unicode with example?

1214


What is pre increment and post increment in java?

988


Garbage collection in java?

1016