Memory Fundamentals - part 1 of Java Memory Management

  Рет қаралды 142,467

Virtual Pair Programmers

Virtual Pair Programmers

7 жыл бұрын

How java manages memory, explaining the stack and the heap.

Пікірлер: 51
@alecmontgomery2099
@alecmontgomery2099 5 жыл бұрын
The speaker gave this presentation in a poetic fashion. The alterations in vocal speed, pitch, and use of pause were excellent--they made the presentation more enjoyable to listen to, and easier to understand. Also aiding my understanding, was the graphics and fairly simple examples. THANK YOU!
@ruixue6955
@ruixue6955 6 жыл бұрын
2:20 Java Memory 2:25 stack and heap 2:40 stack 2:52 every thread has its own stack 3:19 visualization of stack 3:59 example of how stack works 5:05 scope 6:36 all local variables are created on the stack 7:30 heap 10:44 visualization
@theviralstory3356
@theviralstory3356 6 жыл бұрын
Just brilliant, give my thanks to Matt ;) cheers !!
@onesline7685
@onesline7685 3 жыл бұрын
Best, best, best video on JVM's memory allocation!!
@florinmarcus
@florinmarcus 6 жыл бұрын
Amazing presentation skills, congratulations!
@anilkommalapati6248
@anilkommalapati6248 6 жыл бұрын
one of the best java tutorial. awesome.
@himanshisingh7589
@himanshisingh7589 7 жыл бұрын
Very nice video and it clearly explained the basics for java memory management.
@mintymintfresh
@mintymintfresh 6 жыл бұрын
Awesome way of explaining ....loved it
@LalGebi
@LalGebi 7 жыл бұрын
Awesome... very interesting and great way of explaining.. pl. create such type of more videos..
@stefansalapura6659
@stefansalapura6659 3 жыл бұрын
Bravo. So easy and clean.
@achillesheel7314
@achillesheel7314 5 жыл бұрын
Wonderful clear explanation. Thnak you so much!
@ananthasubramanian7355
@ananthasubramanian7355 3 жыл бұрын
Wow...!! Very good explanation via graphics..!! Topics are easy to grasp this way..!! Thanks a lot for this...!!
@sanjeebguru
@sanjeebguru 7 жыл бұрын
Nice explanation. Thanks for the video
@supunkavinda8660
@supunkavinda8660 6 жыл бұрын
wow, Great Explanation!
@mohammedviso2269
@mohammedviso2269 7 жыл бұрын
Great tutorial .......Thanks a lot
@rishat2125
@rishat2125 5 жыл бұрын
Yes! now I understand. This is such an awesome tutorial. Lets follow the series n see what more I can learn. Thanks so much :)
@boopathirajagopalan3047
@boopathirajagopalan3047 5 жыл бұрын
Easy to understand. Awesome
@sameerpatere2983
@sameerpatere2983 5 жыл бұрын
Nice explanation sir... Thanks for effort
@arupnaskar3818
@arupnaskar3818 7 жыл бұрын
really its a good one to make understand and well as to like it..
@Code-09
@Code-09 5 жыл бұрын
best explaination....Thank you.
@vrundaempey5623
@vrundaempey5623 6 жыл бұрын
Great Explanation!
@shamimchaklader157
@shamimchaklader157 3 жыл бұрын
Just awesome explanation !!!!!!!!!!!!!!
@ameenabdelhai9169
@ameenabdelhai9169 6 жыл бұрын
Best! Thank you,
@lwach87
@lwach87 6 жыл бұрын
Great tutorial!
@alwysrite
@alwysrite 7 жыл бұрын
excellent material
@jhguygih
@jhguygih 6 жыл бұрын
I love this computer / advanced robot / perfect voice. I could speed up to 1.5 and easily understand. Thanks
@VPPChesterwood
@VPPChesterwood 6 жыл бұрын
This is our wonderful trainer Matt, he's honestly not a robot!
@hashikdonthineni2863
@hashikdonthineni2863 6 жыл бұрын
That is not a computer for sure...
@user-mn3iq2cs9n
@user-mn3iq2cs9n 6 жыл бұрын
The person who built that robot had a Winchester 'r':) Great video. Very helpful. Well done mates, thank you.
@deontayjefferson6639
@deontayjefferson6639 5 жыл бұрын
Man you are a genius. I never thought of speeding up the videos but I tried it and you are right now I can listen to videos in a shorter amount a time. Thanks
@premabhisek
@premabhisek 5 жыл бұрын
1.25x speed was comfortable in the latter half of the video:)
@amey630
@amey630 6 жыл бұрын
Good explanation.
@kamoevic
@kamoevic 3 жыл бұрын
Great video!!!
@rosasmellshaha
@rosasmellshaha 6 жыл бұрын
I never leave comments. But this was SO good, THANK YOU!!!
@VPPChesterwood
@VPPChesterwood 6 жыл бұрын
That makes us very happy - thank you :-)
@shantanusood1989
@shantanusood1989 6 жыл бұрын
Excellent thanks
@RajeshKumarKondapalli
@RajeshKumarKondapalli 5 жыл бұрын
Nicely explained
@arunbm123
@arunbm123 7 жыл бұрын
nice explanation
@maheralzubi3011
@maheralzubi3011 5 жыл бұрын
great greaaat thanx
@liubovk2
@liubovk2 6 жыл бұрын
The first example with stack shows String[] args being in stack, however, it is an object and is stored in heap
@VPPChesterwood
@VPPChesterwood 6 жыл бұрын
You're quite right, the picture is misleading. args is a variable on the stack of main (which is why we've put it on the picture), but it is referencing the array, which as with all java objects, is stored on the heap. We should have drawn the object separately on the heap but I guess we thought that would overcomplicate matters.
@musa7801
@musa7801 6 жыл бұрын
Nice
@erlanggadewasakti
@erlanggadewasakti 3 жыл бұрын
thanks sir
@leegodfrey6806
@leegodfrey6806 6 жыл бұрын
In the case of main(String[] args) called with an argument "hello", is the memory scheme stack:args -> heap:Array[0] -> heap:String("hello")? Is the instance of args on the stack a reference type? It refers to an array of Strings on the heap, but does args on the stack have a "type"?
@eahmedshendy
@eahmedshendy 6 жыл бұрын
👍
@santoshkumarappala6681
@santoshkumarappala6681 5 жыл бұрын
Why String[] args stored in stack. Since array is a reference type, it's values are supposed to be stored in heap and only the reference pointer should be available in stack. Could you answer please?
@VPPChesterwood
@VPPChesterwood 5 жыл бұрын
Yes in this case the "abc" is interned as it is a constant string, which has obscured our explaination somewhat. The String pool is itself stored on the heap (it used to be in permgen) so you can still say that all objects are stored on the heap.It's all very confusing because of these "clever" tricks that java is performing. It's probably safest to digest the JLS here (especially 3.10.5-1):docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.10.5
@ibrahimshaikh3642
@ibrahimshaikh3642 5 жыл бұрын
Explain nicely
@echo7984
@echo7984 5 жыл бұрын
I love this video, but i am confused now. for example, String s = "abc"; Should the object "abc" are stored in the constant pool (method area) instead of heap ? I thought only the objects created by "new" are stored on the heap.
@VPPChesterwood
@VPPChesterwood 5 жыл бұрын
Yes in this case the "abc" is interned as it is a constant string, which has obscured our explaination somewhat. Sorry. The String pool is itself stored on the heap (it used to be in permgen) so you can still say that all objects are stored on the heap.It's all very confusing because of these "clever" tricks that java is performing. It's probably safest to digest the JLS here (especially 3.10.5-1):docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.10.5
@tradingsimplified2909
@tradingsimplified2909 6 жыл бұрын
Best, best, best video on JVM's memory allocation!!
Values and References - part 2 of Java Memory Management
25:02
Virtual Pair Programmers
Рет қаралды 51 М.
🌊Насколько Глубокий Океан ? #shorts
00:42
The Java memory model explained, Rafael Winterhalter
48:01
Bulgarian Java User Group
Рет қаралды 16 М.
9. Java Memory Management and Garbage Collection in Depth
48:48
Concept && Coding - by Shrayansh
Рет қаралды 52 М.
static variable in Java | static keyword in Java | Memory allocation in Java
15:02
Meera Dudwadkar ( Java Programming )
Рет қаралды 8 М.
Stack vs Heap Memory - Simple Explanation
5:28
Alex Hyett
Рет қаралды 201 М.
Java Memory Model in 10 minutes
10:55
Defog Tech
Рет қаралды 256 М.
The Java Memory Model - The Basics
23:41
Jakob Jenkov
Рет қаралды 120 М.
String Memory Allocation in Java (Stack Memory Vs Heap Memory Vs String Constant Pool)
9:55
Code-Travel-Explore-With-Harshal
Рет қаралды 16 М.
5 Java concepts you MUST KNOW!!
11:50
Amigoscode
Рет қаралды 303 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 3,5 МЛН
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 73 М.
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 6 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,8 МЛН
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН