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

Which graphs are functions?

912


What is operator overloading. Is it is supported in java?

968


Explain oops concepts in detail?

974


What is the purpose of garbage collection in java?

1049


What is use of functional interface in java 8? Explain

959


How thread scheduler schedule the task?

1007


what is the difference between preemptive scheduling and time slicing? : Java thread

984


What are different data structures in java?

980


Why we use set in java?

954


How to access arraylist elements in java?

950


What is difference between wait and notify in java?

1067


Difference between ‘is-a’ and ‘has-a’ relationship in java?

957


Can we sort a map in java?

989


Explain java coding standards for constants?

962


What is the purpose of the return statement?

993