SBSourya Bhattacharyainbhattacharya.hashnode.dev·May 28, 2022 · 2 min readUsing the Builder pattern to create objects in javaLet's say we want to create an immutable class in Java, but there are just way too many fields to keep track of!! We could go the traditional way, and declare a parameterized constructor, along with getters and setters. But this would get real tediou...00
SBSourya Bhattacharyainbhattacharya.hashnode.dev·May 28, 2022 · 1 min readIs a String in Java really immutable?We all know of the famous java.lang.String class in Java. The very next thing that comes to our mind when we see this class is, "oh, yeah. Strings are immutable." But...are they, really? Let's take a closer look. Consider the following snippet of cod...02MT
SBSourya Bhattacharyainbhattacharya.hashnode.dev·Dec 18, 2020 · 2 min readMy Computing JourneyFor far too long, I've been fascinated by computers. I've always been excited by playing games on mobile phones, being able to check and enhance my social media profiles, and also read fun articles on the internet. But I've also inherently wanted to ...00