Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between “#==” and “#equal?”



What is the difference between “#==” and “#equal?”..

Answer / Amit Khanna

"#== checks for object equality, while #equal? checks for value equality. #== compares the identity of objects (whether they are the exact same object), whereas #equal? checks if two objects have the same value."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Please explain the three levels of access control for ruby methods?

1 Answers  


What is the difference between nil and false in ruby?

1 Answers  


Explain ruby data types.

1 Answers  


Explain about variables?

1 Answers  


Explain about class libraries in ruby?

1 Answers  


Explain Ruby hashes?

1 Answers  


Explain me what is the difference between symbol and string?

1 Answers  


How many types of associations relationships does a model has?

1 Answers  


What is a struct in ruby?

1 Answers  


Explain class libraries in ruby.

1 Answers  


What is mvc? And how it works?

1 Answers  


What are advantages of using ruby?

1 Answers  


Categories