I interviewed at Shell Recharge Solutions (Mumbai) in Sept 2024
Interview
Interview process started when the HR connected with me, they took almost 3 to 4 days to schedule my first interview with the hiring manager and then after I complete that interview with hiring manager after 3 to 4 days, they again scheduled my first round of interview with two interviewing panels, they asked me SRT questions related to design architecture and monitoring debugging. Also, they asked me a Java question which I will share here in the below.
Interview questions [1]
Question 1
Context: We have a class called Bar and takes an object of type Foo as a dependency. This
dependency is declared within the Bar class as read-only or final.
Q3: If I write a method called "DoSomething" and its job is to replace the value of a property of
Foo. Will I get a compiler exception, am I even able to do this?
Provide visual of code below as part of the question
public class Bar ( private read-only Foo foo;
public Bar(Foo foo) {
this.foo = foo;
}
public void DoSomething €
foo sample = "new value";
}
!..
var bar = new Bar(new Foo0);
bar.DoSomethingO;