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

Mention what is the command to create a migration?

1 Answers  


Does hash use “ #==” or “#eql?” To compare hash keys?

1 Answers  


what is the difference between String and Symbol?

1 Answers  


What is Ruby programming language?

1 Answers  


mention what is the difference between a single quote and double quote?

1 Answers  


Explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


Difference between nil and false in ruby?

1 Answers  


Explain Ruby hashes?

1 Answers  


List some features of ruby?

1 Answers  


Explain some differences between ruby and python.

1 Answers  


what is the difference between Procs and Blocks?

1 Answers  


difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?

1 Answers  


Categories