SlideShare a Scribd company logo
1 of 1
Download to read offline
sol:
An object will allocated statically when that object is needed for entire life time of that program
1)if object needs recusrion and storage of object conservly then it is stored in stack
2)f object needs dynamic storage then it should be allocated in heap
Solution
sol:
An object will allocated statically when that object is needed for entire life time of that program
1)if object needs recusrion and storage of object conservly then it is stored in stack
2)f object needs dynamic storage then it should be allocated in heap

More Related Content

More from rajat630669

What is an example of big data either from your personal experience .pdf
What is an example of big data either from your personal experience .pdfWhat is an example of big data either from your personal experience .pdf
What is an example of big data either from your personal experience .pdf
rajat630669
 
AppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdf
AppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdfAppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdf
AppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdf
rajat630669
 
Answer.Ltext0         .local   _ZStL8__ioinit         .comm .pdf
Answer.Ltext0         .local   _ZStL8__ioinit         .comm .pdfAnswer.Ltext0         .local   _ZStL8__ioinit         .comm .pdf
Answer.Ltext0         .local   _ZStL8__ioinit         .comm .pdf
rajat630669
 
Gaseous chemical element, chemical symbol O, atom.pdf
                     Gaseous chemical element, chemical symbol O, atom.pdf                     Gaseous chemical element, chemical symbol O, atom.pdf
Gaseous chemical element, chemical symbol O, atom.pdf
rajat630669
 
a). EconomiserAn economiser is a mechanical device which is used a.pdf
a). EconomiserAn economiser is a mechanical device which is used a.pdfa). EconomiserAn economiser is a mechanical device which is used a.pdf
a). EconomiserAn economiser is a mechanical device which is used a.pdf
rajat630669
 

More from rajat630669 (20)

What is an example of big data either from your personal experience .pdf
What is an example of big data either from your personal experience .pdfWhat is an example of big data either from your personal experience .pdf
What is an example of big data either from your personal experience .pdf
 
S-Se=S with 3 lone pairs on the first S, 1 lone.pdf
                     S-Se=S with 3 lone pairs on the first S,   1 lone.pdf                     S-Se=S with 3 lone pairs on the first S,   1 lone.pdf
S-Se=S with 3 lone pairs on the first S, 1 lone.pdf
 
The sample program for above series in JAVA will be like belowimpo.pdf
The sample program for above series in JAVA will be like belowimpo.pdfThe sample program for above series in JAVA will be like belowimpo.pdf
The sample program for above series in JAVA will be like belowimpo.pdf
 
The formula for calculating Alveolar ventilation is as followsAlv.pdf
The formula for calculating Alveolar ventilation is as followsAlv.pdfThe formula for calculating Alveolar ventilation is as followsAlv.pdf
The formula for calculating Alveolar ventilation is as followsAlv.pdf
 
D. This element can only have a -2 oxidation stat.pdf
                     D. This element can only have a -2 oxidation stat.pdf                     D. This element can only have a -2 oxidation stat.pdf
D. This element can only have a -2 oxidation stat.pdf
 
P = 12SolutionP = 12.pdf
P = 12SolutionP = 12.pdfP = 12SolutionP = 12.pdf
P = 12SolutionP = 12.pdf
 
carbon moves by A. interstitial diffusion So.pdf
                     carbon moves by A. interstitial diffusion So.pdf                     carbon moves by A. interstitial diffusion So.pdf
carbon moves by A. interstitial diffusion So.pdf
 
NH4Cl = acid NaOH = base They react 11 Leftover = 0.26-0..pdf
NH4Cl = acid NaOH = base They react 11 Leftover = 0.26-0..pdfNH4Cl = acid NaOH = base They react 11 Leftover = 0.26-0..pdf
NH4Cl = acid NaOH = base They react 11 Leftover = 0.26-0..pdf
 
D is the transition represent!! Solution .pdf
                     D is the transition represent!!  Solution    .pdf                     D is the transition represent!!  Solution    .pdf
D is the transition represent!! Solution .pdf
 
CO2 is non polar because C has no lone pairs, so .pdf
                     CO2 is non polar because C has no lone pairs, so .pdf                     CO2 is non polar because C has no lone pairs, so .pdf
CO2 is non polar because C has no lone pairs, so .pdf
 
As more halide ions are added, it loses its color.pdf
                     As more halide ions are added, it loses its color.pdf                     As more halide ions are added, it loses its color.pdf
As more halide ions are added, it loses its color.pdf
 
AppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdf
AppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdfAppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdf
AppointmentDemo.javaimport java.util.Scanner;    Demonstrat.pdf
 
Answer.Ltext0         .local   _ZStL8__ioinit         .comm .pdf
Answer.Ltext0         .local   _ZStL8__ioinit         .comm .pdfAnswer.Ltext0         .local   _ZStL8__ioinit         .comm .pdf
Answer.Ltext0         .local   _ZStL8__ioinit         .comm .pdf
 
d. t -2.718Solutiond. t -2.718.pdf
d. t  -2.718Solutiond. t  -2.718.pdfd. t  -2.718Solutiond. t  -2.718.pdf
d. t -2.718Solutiond. t -2.718.pdf
 
Debt-equity ratio=DebtEQuityHence debt=1.1EquityTotal assets=De.pdf
Debt-equity ratio=DebtEQuityHence debt=1.1EquityTotal assets=De.pdfDebt-equity ratio=DebtEQuityHence debt=1.1EquityTotal assets=De.pdf
Debt-equity ratio=DebtEQuityHence debt=1.1EquityTotal assets=De.pdf
 
Gaseous chemical element, chemical symbol O, atom.pdf
                     Gaseous chemical element, chemical symbol O, atom.pdf                     Gaseous chemical element, chemical symbol O, atom.pdf
Gaseous chemical element, chemical symbol O, atom.pdf
 
B. Remember this - hydroboration attacks alkenes .pdf
                     B. Remember this - hydroboration attacks alkenes .pdf                     B. Remember this - hydroboration attacks alkenes .pdf
B. Remember this - hydroboration attacks alkenes .pdf
 
a). EconomiserAn economiser is a mechanical device which is used a.pdf
a). EconomiserAn economiser is a mechanical device which is used a.pdfa). EconomiserAn economiser is a mechanical device which is used a.pdf
a). EconomiserAn economiser is a mechanical device which is used a.pdf
 
A) As it is shown this disease should be partly autosomal recessive .pdf
A) As it is shown this disease should be partly autosomal recessive .pdfA) As it is shown this disease should be partly autosomal recessive .pdf
A) As it is shown this disease should be partly autosomal recessive .pdf
 
2) 5Solution2) 5.pdf
2) 5Solution2) 5.pdf2) 5Solution2) 5.pdf
2) 5Solution2) 5.pdf
 

Recently uploaded

Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 

solAn object will allocated statically when that object is needed.pdf

  • 1. sol: An object will allocated statically when that object is needed for entire life time of that program 1)if object needs recusrion and storage of object conservly then it is stored in stack 2)f object needs dynamic storage then it should be allocated in heap Solution sol: An object will allocated statically when that object is needed for entire life time of that program 1)if object needs recusrion and storage of object conservly then it is stored in stack 2)f object needs dynamic storage then it should be allocated in heap