Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

#26 Stack And Heap in Java

Автор: Telusko

Загружено: 2023-01-17

Просмотров: 464081

Описание:

Check out our courses:

Industry-Ready Java Spring Boot, React & Gen AI -Live: https://go.telusko.com/industry-ready...
Coupon: TELUSKO10 (10% Discount)

AI-Powered DevOps with AWS- Live V3: https://go.telusko.com/ai-powered-dev...
Coupon: TELUSKO10 (10% Discount)

Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)

For More Queries WhatsApp or Call on : +919008963671

website : https://courses.telusko.com/

Java Spring:- https://go.telusko.com/Udemyjavaspring
Java:- https://go.telusko.com/udemyteluskojava
Spring: https://go.telusko.com/udemyteluskosp...
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...

Instagram :   / navinreddyofficial  
Linkedin :   / navinreddy20  
WhatsApp : https://go.telusko.com/whatsapp
TELUSKO Android App : https://go.telusko.com/TELUSKOAPP
TELUSKO IOS App : https://apple.co/3SsgmU2
Discord :   / discord  

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...

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

#26 Stack And Heap in Java

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

#27 Need of an Array in Java

#27 Need of an Array in Java

Stream API in Java

Stream API in Java

#95 Comparator vs Comparable in Java

#95 Comparator vs Comparable in Java

9. Java Memory Management and Garbage Collection in Depth

9. Java Memory Management and Garbage Collection in Depth

Stack et Heap (Pile et Tas)

Stack et Heap (Pile et Tas)

Stack vs Heap Memory - Java Memory Management (Pointers and dynamic memory)

Stack vs Heap Memory - Java Memory Management (Pointers and dynamic memory)

#24 Methods in Java

#24 Methods in Java

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Understanding Garbage Collection, Memory Leaks, Heap and Thread Dumps

Understanding Garbage Collection, Memory Leaks, Heap and Thread Dumps

Java's Garbage Collection Explained - How It Saves your Lazy Programmer Butt

Java's Garbage Collection Explained - How It Saves your Lazy Programmer Butt

#40 Encapsulation in Java

#40 Encapsulation in Java

#29 Multi Dimensional Array in Java

#29 Multi Dimensional Array in Java

#28 Creation of Array in Java

#28 Creation of Array in Java

Stack vs Heap Memory - Simple Explanation

Stack vs Heap Memory - Simple Explanation

#37 Static Variable in Java

#37 Static Variable in Java

Миллиарды на ветер: Су-57 - главный авиационный миф России

Миллиарды на ветер: Су-57 - главный авиационный миф России

#52 Переопределение методов в Java

#52 Переопределение методов в Java

4 Hours Chopin for Studying, Concentration & Relaxation

4 Hours Chopin for Studying, Concentration & Relaxation

База отчаяния | Россияне просят разобраться с войной (English subtitles)

База отчаяния | Россияне просят разобраться с войной (English subtitles)

ХАКЕРЫ СЛОМАЛИ И СТЕРЛИ РЕЕСТР ПОВЕСТОК. Власти готовились к мобилизации.  ГЛАВНЫЙ ВЗЛОМ 2025 ГОДА

ХАКЕРЫ СЛОМАЛИ И СТЕРЛИ РЕЕСТР ПОВЕСТОК. Власти готовились к мобилизации. ГЛАВНЫЙ ВЗЛОМ 2025 ГОДА

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]