DateTime[] dt = new DateTime[10]
for(i=0; i<10; i++)
{
dt[i] = DateTime(2008, 1, i+1)
}
How many heap object will be created for the above array.
Choose the correct answer below.
Ans: 1, 10, 11, 12
Answer Posted / garima kurmi
Correct answer is 1.As the heap is a pointer and stores the
type of the object not the value.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Compare & contrast rich client (smart clients or windows-based) & browser-based web application
What are the new features in .net core?
How boxing and unboxing occures in memory?
State the differences between the dispose() and finalize().
What is garbage collection and how it works ?
Explain the difference between the while and for loop.
Is .net a programming language?
What are .net functions?
How server form post-back works?
Explain how do assemblies find each other?
What is COM Interoperability in .NET
Is there a way to suppress the finalize process inside the garbage collector forcibly in .net?
Which dll translate xml to sql in internet information server (iis)?
Is there built-in support for tracing?
How viewstate is being formed and how it's stored on client in .net?