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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / suresh
ANS:11
VALUES ARE STORED IN ARRAY FROM 0.HERE STRING[].
HERE TOTAL I VALUE IS 10 AND IT IS STORED IN ARRAY INCLUDING
STARTING POINT.SO 10+1=11.SO
| Is This Answer Correct ? | 1 Yes | 2 No |
How will you make .NET programs work in Linux ?
What do you mean by Code Access Security in .NET?
What's wrong with a line like this? Datetime.parse(mystring);
Explain the procedure to add assemly to gac to make it shared one?
What is meant by globalization?
How can I find out what the garbage collector is doing?
what is machine key error in .NET how can we solve it?
Readonly vs. const?
Explain the difference between public and static modifiers?
Explain what is a delegate?
What are Satellite Assemblies? How you will create this? How will you get the different language strings?
What are the important components of .net?