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 |
What is a Manifest?
which method do you use to redirect the user to another page without performing a round trip to the client? How?
differance between checkbox and rediobutton in vb.net?
What is .net and .net framework?
How do you start, pause, continue or stop a Windows service off the command line?
Give An example of a ctype and directcast.
What is Event Bubbling in .NET?
How do you define the lease of the object?
How do we access crystal reports in .net?
Difference between assembly manifest & metadata assembly manifest
What is Method Overriding? How to override a function in C#?
What is dot net architecture?