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

Explain about methods?

1 Answers  


What are blocks and procs?

1 Answers  


What are Ruby arrays and how they can be created?

1 Answers  


Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?

1 Answers  


Are numeric objects mutable in ruby?

1 Answers  


Explain class libraries in ruby.

1 Answers  


What is ruby?

1 Answers  


what is the role of sub-directory app/controllers and app/helpers?

1 Answers  


What function converts all html special symbols to html entities in ruby?

1 Answers  


What are the ruby variables?

1 Answers  


Explain about interpolation?

1 Answers  


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

1 Answers  


Categories