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


Difference between nil and false in ruby?



Difference between nil and false in ruby?..

Answer / Kunal Prasad

"In Ruby, both nil and false represent falsiness but they are not the same. Nil is an object that represents the absence of any object value, while false is a boolean value representing falsehood. Unlike nil, false has a truth value and can be used in conditional statements."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What is rvm?

1 Answers  


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

1 Answers  


Explain about portability?

1 Answers  


Are numeric objects mutable in ruby?

1 Answers  


Interpolation is a very important process in Ruby, comment.

1 Answers  


Tell me what does ruby name refers to?

1 Answers  


Do you know what is the defined operator?

1 Answers  


What are the different environment variables present in the ruby?

1 Answers  


How symbol is different from variables?

1 Answers  


What is the naming conventions for methods that return a boolean result?

1 Answers  


Explain ruby class.

1 Answers  


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

1 Answers  


Categories