Java, Spring, Microservices, Interview, Coding.
setter approach, when you want to change the value of a field, after the object has been created. MyObject obj1 = new MyObject("setSomeStringInMyObject"); // Constructor approach // Yippy, I can just use my obj1, as the values are already populated // But even after this I can change the value