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

What is the use com component in .net?

777


Explain difference between panel and groupbox classes using .net?

726


Is there built-in support for tracing?

799


Explain about .Net products?

835


Explain how viewstate is being formed and how it's stored on client in .net?

752


Explain About GDI object ?

816


How to create multiple inheritance in c#, with example?

777


What is the difference between server.transfer and response.redirect? Why?

801


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

795


What does jit do?

785


What is Polymorphism? How does VB.NET/C# achieve polymorphism?

2672


What is different between webusercontrol and in webcustomcontrol?

717


Is there built-in support for logging?

834


Do you know what is .net standard?

820


I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.

1695