Objects Deep Dive | Size, Call by Value vs Reference | Shallow vs Deep Copy | Java Full Course #14

Publicado el: 05 marzo 2026
en el canal de: Coder Army
14,765
705

In this lecture, we take a deep dive into how objects actually work in Java. Understanding how objects behave in memory is critical for writing efficient and bug-free Java programs.

We start by exploring what an object really is in Java and how memory is allocated for objects. Then we move into an important concept that often confuses beginners and even experienced developers: whether Java uses call by value or call by reference.

Finally, we understand the difference between shallow copy and deep copy, which is extremely important when working with complex objects and avoiding unintended side effects in programs.

In this lecture you will learn:
What an object really contains internally
How object size works in Java
The difference between call by value and call by reference
Whether Java is truly call by value or reference
Practical examples demonstrating parameter passing
The difference between shallow copy and deep copy

This concept is fundamental for understanding memory management, object manipulation, and advanced Java programming.

Why Learn Java?
Java is one of the most powerful and widely used programming languages in the world.
It is used in:
Backend development
Enterprise applications
Android development
Banking systems
Large-scale distributed systems

If you want to master Data Structures, Spring Boot, Microservices, or System Design, Java fundamentals are essential.

Join Coder Army Whatsapp Group: https://whatsapp.com/channel/0029Va6H...
Join System Design Whatsapp Group: https://whatsapp.com/channel/0029VbBF...
Code and Notes: Github : https://github.com/adityatandon15/Jav...

We offer paid course on Dsa, web development, blockchain, system design and GenAI.
Join our Paid Course: https://strikes.in/
Coder Army: https://coderarmy.in/#home
Coder Army app: https://play.google.com/store/apps/de...

Connect with Aditya Tandon
Instagram :   / adityatandon2  
LinkedIn :   / adityatandon2  
Twitter : https://x.com/adityatandon02

Timestamps:


00:00 Intro
00:30 Object deep dive
04:39 Actual size of Object
13:51 Call by Value & Reference
32:14 Is Java Call by Value or Reference ?
34:34 Shallow vs Deep Copy


java objects explained, java object memory model, call by value vs call by reference java, is java call by value, shallow copy vs deep copy java, java object size explained, java memory concepts, java programming tutorial, java object internals, java interview questions objects, java oops concepts, java object reference tutorial


En esta página del sitio puede ver el video en línea Objects Deep Dive | Size, Call by Value vs Reference | Shallow vs Deep Copy | Java Full Course #14 de Duración hora minuto segunda en buena calidad , que subió el usuario Coder Army 05 marzo 2026, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 14,765 veces y le gustó 705 a los espectadores. Disfruta viendo!