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 the single responsibility principle?
What is your observations between vb.net and vc#.net?
When we go for html server controls and when we go for web server controls?
Tell us what is the difference between struct and class?
Explain what is an anonymous method and how is it different from a lambda expression?
How to produce an assembly?
What are .net functions?
What is an anonymous method?
What is Event - Delegate? clear syntax for writing a event delegate
What is the difference between override and overload in a method?
Do you know the difference between the stack and the heap?
What is boxing and un-boxing in .net?
What are the similarities and difference between class and structure in .net?
Explain the top .net class that everything is derived from?
What is DTS and explain the purpose of it?