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 do you understand by access specifiers in Java?

1051


Which sorting algorithm is best in java?

1023


Is an empty arraylist null?

1143


What are different types of classloaders?

1073


What is %d in printf?

1091


Can private members of a base class are inheritable justify?

965


What is meant by class?

1058


How many types of design patterns are there?

1166


Explain the importance of finally over return statement?

1110


What is java util concurrentmodificationexception?

957


Explain different ways of creating a thread. Which one would you prefer and why?

1101


What are aggregate functions explain with examples?

1108


How can u increase the heap size in the memory?

1067


Can we have any code between try and catch blocks?

1027


Compare overloading and overriding?

1056