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 #eql??



What is the difference between #== and #eql??..

Answer / Naman Garg

"#== checks for object equality and #eql? checks for value equality, but #eql? ignores nil values. This means that #eql? will consider nil to be equal to any other object, whereas #== will not."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Tell me what are blocks and procs?

1 Answers  


Tell me how do you remove nil values in array using ruby?

1 Answers  


Describe class libraries in Ruby?

1 Answers  


Explain the garbage collection feature of ruby?

1 Answers  


Explain Ruby module?

1 Answers  


What method might you use to remove duplicate values from an array?

1 Answers  


Explain some of the looping structures available in ruby?

1 Answers  


Overview of ruby programming language?

1 Answers  


Difference between nil and false in ruby?

1 Answers  


what is class libraries in Ruby?

1 Answers  


How is visibility of methods changed in ruby?

1 Answers  


Explain module mixins in Ruby?

1 Answers  


Categories