OTOmkar Terbhaiinomkarterbhai.com·Dec 14, 2024 · 6 min readThe 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 ...00
OTOmkar Terbhaiinomkarterbhai.com·Dec 7, 2024 · 4 min readWeak 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...00
OTOmkar Terbhaiinomkarterbhai.com·Jun 4, 2024 · 4 min readSealed 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 ...00
OTOmkar Terbhaiinomkarterbhai.com·Feb 19, 2024 · 6 min readInterface 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...00
OTOmkar Terbhaiinomkarterbhai.com·Oct 28, 2023 · 6 min readIntroduction 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...00