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 / suresh

ANS:11
VALUES ARE STORED IN ARRAY FROM 0.HERE STRING[].
HERE TOTAL I VALUE IS 10 AND IT IS STORED IN ARRAY INCLUDING
STARTING POINT.SO 10+1=11.SO

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can "this" be used within a static method?

1073


Explain the difference between the stack and the heap?

976


Explain what is the difference between encrypting a password and applying a hashing?

1137


What is the single responsibility principle?

1025


How to get the number after decimal point in .net?

1012


Whate are resource files?

1022


Is .net capable of supporting multi-thread?

1028


Should I use readerwriterlock instead of monitor.enter/exit?

1014


Explain the difference between task and thread in .net?

960


State some of the different languages supported by .net?

1011


Differences between namespace, class, assembly?

1048


What is the root class in .net?

1144


Is .net core stable?

912


How boxing and unboxing occures in memory?

1183


What do you mean by Driver Script?

1169