Java, Spring, Microservices, Interview, Coding.
obj1.setSomeString("IWantANewValue"); // Value changed using setter, if required. .. MyObject obj2 = new MyObject(); obj2.setSomeString("setSomeStringNow"); // Setter approach // values weren't populated - I had to do that. Sad :( if you want to create immutable objects, you cannot use