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

Explain the access modifiers for a class, method and variables?

1091


Where is jre installed?

983


Does java runtime require a license?

980


Can I override protected method in java?

1018


What is the difference between char and char *?

1005


State some situations where exceptions may arise in java?

1002


What are the differences between checked exception and unchecked exception?

921


What are static blocks and static initalizers in java ?

1013


Is string is a class in java?

893


What is null in java?

907


What is a numeric literal?

995


What are the main uses of the super keyword?

921


When object is created and destroyed?

1038


Can you explain the final method modifier?

954


What is incompatible types in java?

985