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
Describe the difference between inline and code behind which is best in a loosely coupled solution?
Please explain what do the terms “boxing” and “unboxing” mean?
If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
What is the use of activex control in .net?
Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?
What is value type and refernce type in .net?
Please explain what are an inheritance, polymorphism, and encapsulation?
What is implement a generic action in webapi?
What is "common language specification" (cls) in .net?
Explain how to produce an assembly?
How can I find out what the garbage collector is doing?
Which file is taken by compiler when we have both file Application and Server Configuration file?
Explain .NET architecture?
What are the new 2.0 features useful for?
What are the namespace available in .net?