The Object class in JavaYou might have seen many articles describing the Object class in Java, but why does it exist? What use case does it satisfy? Let’s explore that in this article by going step by step and understanding what if we write code being unaware of the Object ...Dec 14, 2024 · 6 min readomkarterbhai.com
Weak and Soft References in JavaConsider a scenario where you have to build a finance based application that allows users to buy or sell assets in foreign currencies, in this case you will have to constantly fetch foreign currency exchange rates at every event the user triggers. An...Dec 7, 2024 · 4 min readomkarterbhai.com
Sealed Classes - JDK 17JDK 17 has introduced a lot of new features, one of them is Sealed Classes. Let's understand what are sealed classes and why were they introduced. We will not use the Animal -> Dog -> Red Dog -> Multicolor Dog or House -> Door -> Mouse type examples ...Jun 4, 2024 · 4 min readomkarterbhai.com
Interface Segregation Principle - Explained with an amazing example.You might have read different definitions of the 'Interface Segregation Principle' online. It is one of the principles of SOLID. Before we go into any definition, let's understand why do we need the ISP(Interface Segregation Principle) and what probl...Feb 19, 2024 · 6 min readomkarterbhai.com
Introduction to Coercion in JavascriptHow many times have you wondered why 1 + "1" = "11" but 1 - "1" = 0 in Javascript? How many times have you labeled Javascript as "weird" or "difficult"? I suppose too many. Let's demystify this. This confusion mainly occurs because developers have an...Oct 28, 2023 · 6 min readomkarterbhai.com