Appear in Online Interview to test your skills and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Submit content and win cash & prizes monthly.

Win Prizes

Like us on Facebook
Top Articles Author
Thu, 24-Apr-2014 Authors
All Time Authors
Bharathi Cherukuri

Latest members | More ...

(Statistics delayed by 5 minutes)

Which of the following statements are true about the C#.NET code snippet given below?

String s1, s2;
s1 = "Hi";
s2 = "Hi";

1.String objects cannot be created without using new.
2.Only one object will get created.
3.s1 and s2 both will refer to the same object.
4.Two objects will get created, one pointed to by s1 and another pointed to by s2.
5.s1 and s2 are references to the same object.

 Posted by Murugavelmsc on 2/18/2013 | Category: C# Interview questions | Views: 2097 | Points: 40
Select from following answers:
  1. 1, 2, 4
  2. 2, 3, 5
  3. 3,4
  4. 2,5

Show Correct Answer

Source: | Asked In: Many Interviews | Alert Moderator 

Found interesting? Add this to:

More Interview Questions by Murugavelmsc

    Comments or Responses

    Login to post response.

    Comments / Responses
    Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
    Bold Italic Underline Paragraph Title Code  Link 
     Wait ... Processing ..... please wait.