UrbanPro
true
default_background

Take BTech Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Lazy initialization Vs Eager initialization

Milan M.
21/12/2016 0 0

Memory and resource utilization plays crucial role in current enterprise era developers always need to take care of resource creation, utilization and it's cleanness on correct time to make application more effective and optimized. 
Object creation is also part of it. Lazy initialization is technique were we restrict the object creation until its created by application code. This saves the memory from redundant objects which some time may be very big/heavy.
In other way eager initialization creates the object in advance and just after starting the application or module. This is helpful in case the object is mandatory and in all the cases functional. This way application provides the ready to use object and saves execution time at time of actual request.

So, as per above details, both lazy and eager loading/initialization plays critical role and should be used as per the requirement and behavior of application.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

10 Tips to improve your learning
1. Have a quick revision of topics that you have read in past three days before you start studying a new topic. 2. Make your own notes containing the summary of the topic. 3. Allot proper timing for...

Solution to a trigonometric problem requested by one student
∫ sin² x /( 1+ cos x ) dx Let's multiply both numerator and denominator by ( 1 - cos x ) = ∫ sin² x • ( 1 - cos x ) / ( 1 + cos x ) • ( 1 - cos x ) dx = ∫ sin²...

How To Write An Assignment?
Instructions for writing the Assignment: It should contain minimum of 7 pages to maximum of 10 pages. Write all the topics with clear headings, sub headings and points with serial numbers 1,2,3,4,5...

Capacitor Concept
•A capacitor is an energy storage element which is analogous to the spring element of mechanical systems. •It can store electrical pressure (voltage) for periods of time. -When a capacitor has...

Solution to a integration problem
∫ 1/(1 - e× ) dx Let's add and subtract e× in the numerator = ∫ {( 1 - e× ) + e× } / (1 - e× ) dx = ∫ = ∫ 1•dx + ∫ e× / ( 1 - e×...
X

Looking for BTech Tuition Classes?

The best tutors for BTech Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BTech Tuition with the Best Tutors

The best Tutors for BTech Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more