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

Tell me how can you declare a block in ruby?

1 Answers  


List some features of ruby?

1 Answers  


Interpolation is a very important process in Ruby, comment.

1 Answers  


How can you removed from array in ruby?

1 Answers  


Explain Ruby exceptions?

1 Answers  


Explain break statement in Ruby?

1 Answers  


what the difference is between false and nil in Ruby?

1 Answers  


Explain redo statement in Ruby?

1 Answers  


What is ruby object?

1 Answers  


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

1 Answers  


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

1 Answers  


What are Ruby arrays and how they can be created?

1 Answers  


Categories