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 nil and false in ruby?



What is the difference between nil and false in ruby?..

Answer / Ritu Priyadarshani

In Ruby, nil represents an empty value or no value at all. It evaluates to false in a boolean context. False, on the other hand, explicitly denotes falsehood and does not represent an absence of a value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain the difference between a single quote and double quote?

1 Answers  


What is RubyGems in Ruby programming language?

1 Answers  


Explain the role of modules and mixins in ruby?

1 Answers  


Explain about ruby names?

1 Answers  


In how many ways a block is written in Ruby?

1 Answers  


How ruby looks up a method to invoke?

1 Answers  


What are the three levels of method access control for classes and what do they signify? What do they imply about the method?

1 Answers  


Do you know about dig, float and max?

1 Answers  


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

1 Answers  


How would you implement hash in ruby internally?

1 Answers  


Can you list out the few features of ruby?

1 Answers  


How do you handle exceptions in ruby code?

1 Answers  


Categories