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...


Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?



Please explain each of the following operators and how and when they should be used: ==, ===, eql?, ..

Answer / Anjana Yadav

== is the equality operator, it checks if two objects have the same value and the same type. It's commonly used for object comparisons.n=== checks if the left-hand side and right-hand side are equivalent according to a particular classification (such as comparing objects of the same class or instances of the same module).neql? checks whether the left and right operands are exactly equal. It returns true only when both values have the exact same object identity.nEqual? is an alias for eql?

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How would you implement hash in ruby internally?

1 Answers  


What is yield statement in ruby.

1 Answers  


Tell me how you define instance variable, global variable and class variable in ruby?

1 Answers  


Tell me what is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


Explain me what is the difference between symbol and string?

1 Answers  


Are numeric objects mutable in ruby?

1 Answers  


What are the case statement in ruby?

1 Answers  


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

1 Answers  


Tell me how you can list all routes for an application?

1 Answers  


In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

1 Answers  


Explain about the programming language ruby?

1 Answers  


Can method names be capitalized?

1 Answers  


Categories