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 use of load and require in ruby?



What is the use of load and require in ruby?..

Answer / Ankush Arora

Both load and require are used to include Ruby files, but they behave slightly differently. require compiles the file only if it's not already compiled (a .rbc file). On the other hand, load will always execute the code, even if it's already compiled. The main difference is that require prevents duplicate loading, while load does not.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Is ruby whitespace-dependent?

1 Answers  


How many iterators are there in ruby?

1 Answers  


Explain about the defined operator?

1 Answers  


How do you handle exceptions in ruby code?

1 Answers  


Explain the use of retry statement in ruby?

1 Answers  


What is RubyGems in Ruby programming language?

1 Answers  


Please explain what are some advantages of using ruby?

1 Answers  


How would you implement hash in ruby internally?

1 Answers  


Explain about variables?

1 Answers  


Explain about the command line options?

1 Answers  


Is ruby a dying language?

1 Answers  


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

1 Answers  


Categories