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 what is a sealed class?
What is the difference between response.redirect & server.transfer?
Which Namespace is used to to achieve MultiThreading in .NET?
If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.
What is immutability?
Explain when should you use .net web forms over asp.net mvc?
What is an assembly? What are the different types of assemblies?
How can I find out what the garbage collector is doing?
Explain me why do we use msmq?
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.
What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
What is close method? How its different from finalize and dispose?
What is .net assembly?
What is 3 tier architecture?
what is the keyword used for self reference?