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 method might you use to remove duplicate values from an array?

1 Answers  


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

1 Answers  


Do you know what is the defined operator?

1 Answers  


Explain break statement in Ruby?

1 Answers  


Explain redo statement in Ruby?

1 Answers  


What is concatenating string in ruby. In how many ways you can create a concatenating string.

1 Answers  


How is object methods defined in ruby?

1 Answers  


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

1 Answers  


In how many ways you can compare Ruby string?

1 Answers  


Explain about interpolation?

1 Answers  


Tell me how do you remove nil values in array using ruby?

1 Answers  


In how many ways items can be removed from array in Ruby?

1 Answers  


Categories