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
Tell us the difference between managed and unmanaged code?
Which Namespace is used to to achieve MultiThreading in .NET?
What is COM Interoperability in .NET
What is a serviced component?
What is func in .net 3.5?
What are the core differences between .NET Languages ?
How to view a .NET assembly?
Is there built-in support for logging?
Do you know what are three common acronyms used in .net, and what do they stand for?
What is .net and .net framework?
What makes .net core cross platform?
What is the concept of inheritance and how it works in .net?
What is data type and how many types of data types are in .NET ?
Explain how does assembly versioning work?
What is .net3.5?