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 |
Should I implement finalize on my class? Should I implement idisposable?
How different are interface and abstract class in .Net?
What is .net and why it is used?
How will you load dynamic assembly? How will create assemblies at run time?
0 Answers InfoAxon Technologies,
Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
Write the .net syntax for 'while loop'?
What?s Singleton activation mode?
What is the purpose of enumerable class in .net?
Tell us the difference between managed and unmanaged code?
Tell us what is heap and what is stack?
What is the difference between encrypting a password and applying a hashing?
What is close method? How its different from finalize and dispose?