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
Is .net an object oriented language? What are their components?
Tell me about secure socket layer? How to make use of the technology?
SAP Business One(this is intigrated tool of .net)
What is iis? Have you used it?
What is a serviced component?
what is the keyword used for self reference?
What is the difference between web application and enterprise application?
What is concurrency? How will you avoid concurrency when dealing with dataset?
Explain the difference between vb and vb.net?
Why SOAP is required?
What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?
What is the use of UML in .Net
What is close method? How its different from finalize and dispose?
Explain what is a delegate?
Is atl redundant in the .net world?