Morgan Stanley Round-2 | 4-7 years of Experience.

preview_player
Показать описание
Welcome to Code With Roy !!

Here, we dive deep into the world of IT, covering a wide range of topics including Core Java concepts, Spring Boot, Microservices, Java interview experiences for both freshers and experienced professionals, and insights into the dynamic IT life.

Whether you're just starting your IT journey or looking to enhance your skills and knowledge, you'll find valuable content tailored to your needs. Our goal is to provide comprehensive resources, tutorials, tips, and real-world experiences to help you succeed in the ever-evolving technology field.

🎯 Ready to ace your interviews and level up your career? Book a personalized 1:1 mentorship session with me!

In this exclusive mentorship program, you'll get tailored guidance and expert insights to help you excel in your interviews and achieve your career goals. Whether you're preparing for a job interview, seeking career advice, or aiming for professional growth, I'm here to support you every step of the way.

Book Here ⬇️

Don't forget to hit the subscribe button and turn on notifications so you never miss out on our latest uploads. Thank you for joining us on this exciting journey through the IT world!
Рекомендации по теме
Комментарии
Автор

Second round was good.
The design question about corona was good, it wil take some time to think in all perspective.

exploreviralvideos
Автор

Spring does not manage the complete lifecycle of a prototype bean. We have to clean up prototype-scoped objects and release expensive resources that the prototype beans hold.
With the help of BeanPostProcessor and DisposalBean interface we have to implmemt and write the clean up code.
If someone need I can post the code here to show how to do that?

ManishTiwari-orzt
Автор

Hi, was this the final round and have u got the offer?

ayush
Автор

Did you get any offer from Morgan Stanley ? What was the position you were interviewed for ?

babhijit
Автор

You don't get nervous before/ during interviews?... have you ever got blank during any interview?

mayanksharma
Автор

Here is the code
public class PrototypeBeanPostProcessor implements BeanPostProcessor, DisposableBean, ApplicationContextAware {

private ApplicationContext context;
List<Object> prototypeBeans = new LinkedList<Object>();

public Object bean, String beanName) throws BeansException {
if {
synchronized (prototypeBeans) {
prototypeBeans.add(bean);
}
}

return bean;
}

public void applicationContext) throws BeansException {
this.context = applicationContext;
}

public Object bean, String beanName) throws BeansException {
return bean;
}

public void destroy() throws Exception {
synchronized (prototypeBeans) {
for (Object bean : prototypeBeans) {
if (bean instanceof DisposableBean) {
DisposableBean disposable = (DisposableBean)bean;
try {
disposable.destroy();
} catch (Exception e) {
e.printStackTrace();
}
}
}
prototypeBeans.clear();
}
}
}

ManishTiwari-orzt