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

Give an example of call be reference significance.

988


What is an interface in java? Explain

1098


What is indexof?

925


How does varargs work in java?

1048


What is stack class in java?

996


What's the access scope of protected access specifier?

991


What is the difference between an argument and a parameter?

953


Is arraylist zero based?

1012


What is mean by collections in java?

1100


What is the advantage of preparedstatement over statement?

1054


What is constructor and virtual function? Can we call a virtual function in a constructor?

1091


What is package protected in java?

929


What advantage do java's layout managers provide over traditional windowing systems?

919


What is function and method in java?

911


What is difference between variable declaration and definition?

918