Which of the following statements is correct about the C#.NET code snippet given below? class Student s1, s2; // Here 'Student' is a user-defined class. s1 = new Student(); s2 = new Student();

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Which of the following statements is correct about the C#.NET code snippet given below?  class Student s1, s2; // Here 'Student' is a user-defined class. s1 = new Student();  s2 = new Student();

1.Contents of s1 and s2 will be exactly same.

2.The two objects will get created on the stack.

3.Contents of the two objects created will be exactly same.

4.The two objects will always be created in adjacent memory locations.


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!