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

Can I write my own .net host?

822


What is file extension of Webservices in .Net?

822


Write the .net syntax for 'while loop'?

804


Is there any thread in our .net programs?

853


Explain the different parts of an assembly?

801


What is difference between .net and .net core?

752


Explain how to stop a thread?

812


hai, about trading domain and need simple project on trading system. please help me...

1835


Explain what is the difference between odbc and ado?

730


What are the new 2.0 features useful for?

879


Is .net core the future?

786


Where does the gac exist ?

779


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

813


Dynamic Fonts

1681


Explain the procedure to add assemly to gac to make it shared one?

778