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 is unicode full form?

928


What does the three dot emoji mean?

1048


Can we have static methods in an interface?

997


When to use runnable interface vs thread class in java?

930


What is the impact of declaring a method as final?

963


What is exception propagation?

1067


How can we make copy of a java object?

1072


Which category the java thread do fall in?

942


what are different ways in which a thread can enter the waiting state? : Java thread

902


What is finally block?

974


How do you generate random numbers in java?

955


Wha is the output from system.out.println(“hello”+null); ?

1084


What is the final access modifier in java?

1006


How do you delete a list in java?

903


What is difference between path and classpath?

1061