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

How does linkedlist work in java?

991


Which is better singleton or static class?

1029


Where is jre installed?

1095


What are the types of strings?

1093


Write a function to print Fibonacci series and Tribonacci series?

1222


Are primitives objects?

1115


What is a generic type?

1057


What is multiple inheritance? Is it supported by java?

1018


What is the different types of functions?

1104


What is singleton math?

1221


Explain the difference between abstract classes and interfaces in java?

1269


How do you decide when to use arraylist and linkedlist?

1050


Which class is the superclass of all classes?

1158


Should database connections be singleton?

1018


Can you use this() and super() both in a constructor?

1038