Episode image

S1E2 - The new Keyword in Java: Object Creation and Its Hidden Costs

PithorAcademy Presents: Deep Dive

Episode   ·  0 Play

Episode  ·  16:19  ·  Jun 30, 2025

About

In this episode, we unpack the new keyword in Java—how it works, why it’s essential for object creation, and what challenges it introduces. Learn how new instantiates classes, allocates memory, and ties your code to specific implementations. We’ll also discuss the downsides, like tight coupling, reduced testability, and why developers often turn to patterns like dependency injection, factories, or Spring frameworks to avoid direct use of new. Whether you're a Java beginner or building scalable apps, this episode reveals when to use—and when to avoid—new.#Pithoracademy#JavaPodcast #JavaNewKeyword #ObjectCreationJava #JavaBestPractices #JavaDevelopment #LearnJava #JavaDesignPatterns #DependencyInjection #JavaBeginners #CodeMaintainability

16m 19s  ·  Jun 30, 2025

© 2025 Podcaster