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
What does jit compilation do in .net?
Explain what inheritance is, and why it's important?
Explain Creational design pattern in .NET?
What is common type system (cts)?
What are nullable types in .NET
What are Attributes in .NET?
How can you assign an rgb color to a system.drawing.color object?
Explain the difference between task and thread in .net?
When we go for html server controls and when we go for web server controls?
What is difference between .net and .net core?
How to implement CAS in .Net?
What is namespaces in .net?
What are .net functions?
I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?
What is SOAP? How you will do windows and forms authentication?