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 .net and .net framework?

621


With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

516


What is the difference between a class and an object, and how do these terms relate to each other?

594


What is immutability?

571


What is il and c#?

581






How many types of transactions are there in com + .net ?

572


What's wrong with a line like this? Datetime.parse(mystring);

565


What is Flyout Design Pattern in .NET?

642


Explain what is the difference between constants and read-only variables?

525


What are the different types of memory in .net?

605


What is loosely coupled solution in.net?

569


Example from .net. Integer & struct are value types or reference types in .net?

553


how can i create a table from front end to back end in wabe page?

1501


What is the difference between boxing and unboxing?

546


Explain attributes in dot net?

572