У нас вы можете посмотреть бесплатно #26 Stack And Heap in Java или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Check out our courses: Complete Java Developer Course Batch-4: https://go.telusko.com/Complete4 Coupon: TELUSKO10 (10% Discount) Spring Boot 3 and Spring AI - Live Course :- https://go.telusko.com/spring3springAI Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) Udemy Courses: Spring: https://go.telusko.com/udemyteluskosp... Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopy... Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodo... For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ In this lecture we are discussing: 1) Memory management in java and typed of categories to store data in memory. 2)What is stack ? 3)What is heap ? 4) where instance variable and local variable is allocated? #1 In java we are managing our managing our memory using two data structure stack and heap. two categories to store data in memory: 1) Stack data structure 2) heap data structure #2 Stack is data structure which follow LIFO(Last in First Out) principle. #3 heap is data structure which is used to store data in form of object and object is a collection of data and method. #4 class Student{ int instVariable; //store in object and object created in heap public static void main(String []args){ int localVariable=0; //local variable store in stack frame of method in stack area. Student st=new Student(); //st is reference variable store address of new Student() object } public int add(int num1,int num2){ return num1+num2; } } -- instance variable stored in object and object are in heap therefore we can say that instance variable created in heap. -- method declaration and definition is present in object but actual implementation present in stack frame of stack. -- local variable created in stack during call of method. -- stack frame of called method is present in stack area. -- st is reference variable created inside the current stack frame and it is reference variable store address of student object created in heap area. -- new Student() create object in heap area and pointed by his reference variable. Github repo : https://github.com/navinreddy20/Javac... Java:- https://bit.ly/JavaUdemyTelusko Spring:- https://bit.ly/SpringUdemyTelusko More Learning : Java :- https://bit.ly/3x6rr0N Python :- https://bit.ly/3GRc7JX Django :- https://bit.ly/3MmoJK6 JavaScript :- https://bit.ly/3tiAlHo Node JS :- https://bit.ly/3GT4liq Rest Api :-https://bit.ly/3MjhZwt Servlet :- https://bit.ly/3Q7eA7k Spring Framework :- https://bit.ly/3xi7buh Design Patterns in Java :- https://bit.ly/3MocXiq Docker :- https://bit.ly/3xjWzLA Blockchain Tutorial :- https://bit.ly/3NSbOkc Corda Tutorial:- https://bit.ly/3thbUKa Hyperledger Fabric :- https://bit.ly/38RZCRB NoSQL Tutorial :- https://bit.ly/3aJpRuc Mysql Tutorial :- https://bit.ly/3thpr4L Data Structures using Java :- https://bit.ly/3MuJa7S Git Tutorial :- https://bit.ly/3NXyCPu Donation: PayPal Id : navinreddy20 https://www.telusko.com