Which of the following statements is correct about the C#.NET code snippet given below? class Trial { int i; Decimal d; } struct Sample { private int x; private Single y; private Trial z; } Sample ss = new Sample();
1.ss will be created on the heap.
2.Trial object referred by z will be created on the stack.
3.z will be created on the heap.
4.ss will be created on the stack.