Programming Languages C# Objective
Mar 06, 2013

Which of the following statements about a String is correct?

Choose the correct answer:
A) A String is created on the stack.
B) Whether a String is created on the stack or the heap depends on the length of the String.
C) A String is a primitive.
D) A String is created on the heap.
Detailed Explanation

Option D is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback