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 / 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 |
Post New Answer View All Answers
With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?
What are the advantages of .net?
Describe the programming model of a windows service
How will you do redo and undo in textbox control?
Write the .net syntax for 'while loop'?
Difference between dispose and finallize method?
Explain me how does linq work?
What is the use of gacutil.exe?
What does il do?
Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?
What is namespaces 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's singlecall activation mode used for in .net?
Is Driver Script any how related to AOM?
Explain can the validation be done in the server side? Or this can be done only in the client side?