Satyam Singh·Oct 2JDBC, Hibernate, and Flyway: They All Touch the Database, but They Solve Different ProblemsIf Hibernate can talk to the database and even create tables, why do we still need JDBC underneath it? And if Hibernate can update the…
Satyam Singh·Sep 26Why Can a HashMap Entry Exist but get() Still Return null?A HashMap stores key-value pairs, and we normally expect this:
Satyam Singh·Sep 24The Hidden Cost of Inheritance: Why Java Interfaces Cannot Own Object State while abstract Class…An abstract class can have instance variables just like a normal class. Although we cannot instantiate an abstract class directly, its…
Satyam Singh·Sep 24Java Memory Explained: What Really Happens Inside the JVM When You Create an Object?JVM memory management is categorised into 3 main parts - Method area Stack area Heap area
Satyam Singh·Sep 21How Functional Interfaces Power Lambda Expressions and the Stream API in JavaJava 8 introduced three important features that changed how developers write Java code: Functional Interfaces, Lambda Expressions, and the…