Memory Leaks in Java | Issues Caused and How to Prevent | Example

preview_player
Показать описание
Hello Everyone,

This is another video in the Series of Core Java Programming. This video contains Detailed demonstration of how Memory Leaks occur in Java with examples Stepwise.

Chapters:
0:00 Introduction: What is Memory Leak?
1:44 Most Common Causes of Memory Leaks
2:59 Demonstration using Example for Memory Leaks with Static Variables
11:17 How to Prevent Memory Leaks

Links:

Please do checkout other tutorial videos also if required:

Please do LIKE, Share and SUBSCRIBE

Thank You

#java #interface #interview #exam #abstraction #coding #methodoverloading #methodoverriding #runtime #compiletime #polymorphism #inheritance #constructors #objects #static #eclipse #developer #installation #download #awesome #youtube #youtuber #youtubers #subscribe #youtubevideos #sub #youtubevideo #like #identifiers #operators #variables #typesofvariables #innerclasses #static
Рекомендации по теме
Комментарии
Автор

Finally, I got to know after many years of experience. Thanks!!!

RanjitKumar-kbzt
Автор

I thought these topics are only theoretical definition and it can't be visualised. Thanks for sharing your valuable knowledge.

saddammd
Автор

Got to learn new thing todays ... Thanks buddy

maankhurana
Автор

Excellent explanation with visualization. Very nice tutorial 👌 👍

nikunjpatel
Автор

Really helpful please come up such interesting knowledgeable videos

utkarshvanjale
Автор

one of the best videos which i have came across till date.. please keep up this good work!!

DurgaShiva
Автор

Easy to understand.... Very good explanation sir 👍👍

Rajesh-qkne
Автор

thanks for sharing the knowledge in such a simple way. You are genious. Keep uploading such useful stuff.

MrNareshProMax
Автор

Well explained. Thanks for your efforts 🙏

vjdreamworks
Автор

Excellent explanation. Thank you very much!

nidhisharma
Автор

Great video with easy to understand explanation. I have a question. I checked my hprof heap dump as I thought my application was causing memory leaks, but it turns out most of the memory is consumed by byte, char and Strings which are not from my application. How do I fix or avoid memory leaks in that case? Your response will be highly appreciated. Thanks

teeh
Автор

A static field, by itself, is not a memory leak. It's only a memory leak if memory is allocated but not released when no longer needed. If you need a list of doubles for the lifetime of the program, then keeping the data in a static field is an appropriate design. If at some point in the program execution they are no longer needed, just call List::clear.

petergyt
Автор

Great explaination and it's very helpful

dptech
Автор

very good content thanks a lot and all the very best.

realknowledge-
Автор

Correction: in java 9+, do not avoid string concatenation if the whole string is computed on a single operation (i.e. not in a loop), the compiler and runtime know enough for it to be optimal

JorgetePanete
Автор

very informative video on an underrated topic. thank you !!

pronavsandhu
Автор

Worth watching the video. Thank you ^_^.

syamnaidu
Автор

Great Sir! keep sharing such awesome tutorials.

SohailKhan-puoi
Автор

Why the populate method is not declared static, since it is only using static member?
In that case to populate the list we will not need to create the object of the class.

And when the list is no longer needed then it could be set to null, to let the garbage collector reclain it. It would not need the unloading of the class in such a case.

pravinjain
Автор

Soon to be a correction: the finally block is most of the time replaced by the try-with-resources, and the finally block will be removed in some future java release

JorgetePanete