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

What is the difference between calling super and calling super()?

1 Answers  


Explain some of the looping structures available in ruby?

1 Answers  


What are the only two values that are falsy?

1 Answers  


What is the difference between extend and include?

1 Answers  


what is the difference between put and putc statement?

1 Answers  


Explain Ruby exceptions?

1 Answers  


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

1 Answers  


Is ruby supports single inheritance/ multiple inheritance or both?

1 Answers  


How is visibility of methods changed in ruby?

1 Answers  


Is ruby a statically typed or a dynamically typed language?

1 Answers  


Explain about methods?

1 Answers  


Explain about the command line options?

1 Answers  


Categories