Just Eat Interview Question: What's the difference between... | Glassdoor.ca

Interview Question

Senior Software Engineer Interview Bristol, England (UK)

What's the difference between transient objects, singleton

  and scoped?

Interview Answer

1 Answer


Transient objects are always different; a new instance is provided to every controller and every service.

Scoped objects are the same within a request, but different across different requests.

Singleton objects are the same for every object and every request.

Interview Candidate on Nov. 14, 2018

Add Answers or Comments

To comment on this, Sign In or Sign Up.