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
Can "this" be used within a static method?
Explain the difference between the stack and the heap?
Explain what is the difference between encrypting a password and applying a hashing?
What is the single responsibility principle?
How to get the number after decimal point in .net?
Whate are resource files?
Is .net capable of supporting multi-thread?
Should I use readerwriterlock instead of monitor.enter/exit?
Explain the difference between task and thread in .net?
State some of the different languages supported by .net?
Differences between namespace, class, assembly?
What is the root class in .net?
Is .net core stable?
How boxing and unboxing occures in memory?
What do you mean by Driver Script?