• +91 9723535972
  • info@interviewmaterial.com

Ruby Interview Questions and Answers

Question - In how many ways you can compare Ruby string?

Answer -

Ruby strings can be compared with three operators:

  • With == operator : Returns true or false
  • With eql? Operator : Returns true or false
  • With casecmp method : Returns 0 if matched or 1 if not matched

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners