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...

who can we create the object of a class? in how many ways we
can create it (max 5)

Answer Posted / ravi jain

through

1) String s = "This is my Object";

2) String s1 = s.subString(1,8);

3) int[] arr = {12,45,12}; every array is an object.

4) String s2 = s + s1;

these all are also create new instances.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two parts of a conditional statement?

965


What do you mean by object?

982


Can a serialized object be transferred via network?

963


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

994


Which is easier netbeans or eclipse?

1062


What does it mean that a method or field is “static”?

976


What is an escape character in java?

1039


What is difference between identifier and variable?

1067


What is the difference between stringbuffer and stringbuilder?

1064


Is ++ operator thread-safe in java?

1190


What is an empty class? What functionality does it offer in Java?

1278


How many bytes is a string java?

1031


What is the use of arraylist in java?

1096


What is unicode used for?

1166


How do you compare two objects?

941