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 the difference is between false and nil in Ruby?



what the difference is between false and nil in Ruby?..

Answer / Chandra Dev Pankaj

False is a boolean value representing 'false' or 'falsy'. It means that the expression evaluates to false when used in a conditional statement. On the other hand, Nil is an object that represents the absence of any object value. It is used to represent an undefined or empty value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How would you freeze an object in ruby?

1 Answers  


Mention what is the command to create a migration?

1 Answers  


How to read a file in Ruby?

1 Answers  


What are the object-oriented programming features supported by ruby?

1 Answers  


Explain the difference between a single quote and double quote?

1 Answers  


difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?

1 Answers  


How is object methods defined in ruby?

1 Answers  


What is a struct in ruby?

1 Answers  


What is the use of global variable $ in Ruby?

1 Answers  


How ruby looks up a method to invoke?

1 Answers  


Explain until loop in ruby.

1 Answers  


What is rvm?

1 Answers  


Categories