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

String[] a = new string[10]

for(i=0; i<10; i++)
{
a[i] = i;
}

How many heap object will be created for this array. Choose
the answer below.

Ans: 1, 10, 11, 12

Answer Posted / dennis

11.
1 for the String[]
and 1 for each individual "string" in the string array.(so total 10)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what inheritance is, and why it's important?

914


How is meant by dll in .net?

982


What is the concept of inheritance in .net?

1093


Explain Creational design pattern in .NET?

1003


Can you create instance of a class which has private constructor?

967


What is lazy initialization?

993


Explain how garbage collection works?

956


Why SOAP is required?

1151


Explain me what is the difference between an abstract class and an interface?

959


Will it go to finally block if there is no exception happened?

937


What is marshling?

997


What is the difference between response.redirect & server.transfer?

1053


What does cil do?

952


What is cyclomatic complexity and why is it important?

2305


What is class library in .net

1041