What is the difference between a.Equals(b) and a == b?

Answer Posted / sreejith k

The following article explains in detail on the difference between various equality operators

http://www.dotnetperls.com/string-equals

The final take is that Equals() require that the string be non-null while == checks for null.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by role-based security?

564


Explain difference betn dataset and recordset?

526


How you can access the properties and controls of master pages from content pages?

508


What are client activated objects and server activated objects?

512


Describe the events in the life cycle of a web application.

596






In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

1543


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

522


How can you handle exceptions in asp.net?

556


What are the two properties that are common on every validation control?

549


What is caching in asp.net?

562


What is difference between viewstate and session state in javascript?

572


What is an example of an application service provider?

450


How to add DateTime Control in normal DataGrid Server Control?

580


Explain asp.net page life cycle?

608


What is asp.net response object?

556