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


Please Help Members By Posting Answers For Below Questions

What does il do?

564


What is the difference between .net and laravel?

571


What is .net debug & trace?

625


How is .net able to support a lot of languages?

540


What are the core differences between .NET Languages ?

1792






Is there any thread in our .net programs?

595


What is "microsoft intermediate language" (msil)?

521


How is .net able to support multiple languages?

609


Why inheritance is important?

548


What is static constructor, when it will be fired?

549


What is an anonymous method and how is it different from a lambda expression?

512


Explain how do assemblies find each other?

575


What is the best way to crack the certification?

1376


How server form post-back works?

580


What is value type and refernce type in .net?

589