What is equal c#?



What is equal c#?..

Answer / Pardeep Kumar

The operator '==' or the expression Equals(obj1, obj2) in C# checks for equality between objects. When comparing simple types like integers or strings, it compares their values. For reference types like classes, it checks if they refer to the same object instance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

In Main function another function is there and to that function if we pass string as parameter ,then that string value is passed by value or reference type?

4 Answers   Honeywell,


Can you change the value of a variable while debugging a C# application?

1 Answers   Siebel Systems, Wipro,


What is thread and explain states of a thread in c#?

1 Answers  


What is difference between constants and read-only?

1 Answers  


Why do we use classes?

1 Answers  


What is bitwise operator in c#?

1 Answers  


Difference between multi-level and multiple inheritance?

17 Answers   Microsoft,


Which namespace is required to implement trace ?

1 Answers  


what are the events in delegate?

2 Answers   Choice Solutions,


What is a static property. Give an example?

1 Answers  


What is the use of ienumerable?

1 Answers  


How garbage collection deals with circular references.

1 Answers  


Categories