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
What is .net and .net framework?
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?
What is the difference between a class and an object, and how do these terms relate to each other?
What is immutability?
What is il and c#?
How many types of transactions are there in com + .net ?
What's wrong with a line like this? Datetime.parse(mystring);
What is Flyout Design Pattern in .NET?
Explain what is the difference between constants and read-only variables?
What are the different types of memory in .net?
What is loosely coupled solution in.net?
Example from .net. Integer & struct are value types or reference types in .net?
how can i create a table from front end to back end in wabe page?
What is the difference between boxing and unboxing?
Explain attributes in dot net?