Code Pumpkin

Tag Archives: Design Patterns

CGI Interview Questions – Set 1

October 18, 2019
Posted by Pumpkin

CGI had arranged a walk-in drive at Bangalore location and I have appeared for Java Developer position. There were total three technical rounds and the difficulty level was easy to medium. I was allocated a slot from 9:30 am to 1:00 pm, but the interview process took a full day. First Technical Round Tell me […]

Preventing Cloning in Singleton Design Pattern

This is our third article on Singleton Design Pattern. The purpose of the singleton class is to control object creation, limiting the number of objects to only one. In our previous two articles, we have discussed how we can create Singleton Design Pattern in Single-threaded and multithreaded environment. In this article, we will discuss how we can […]

Serialization and Singleton Design Pattern

This is our forth article in the series of Singleton Design Pattern Articles. The purpose of the singleton class is to control object creation, limiting the number of objects to only one.  In our previous three articles, we have discussed how we can create Singleton Design Pattern in Single-threaded and multithreaded environment. We have also discussed how […]

Singleton Design Pattern Using Double Checked Locking

This is our second article in the series of Singleton Design Pattern.  In this article, we will see different thread safe approaches for lazy Initialization Singleton Design Pattern like Using Synchronized getInstance() method, Double checked locking approach and Bill Pugh Implementation using Inner class. For navigating to the other articles on Singleton Design Pattern, please refer table of contents on the right […]

Morgan Stanley Interview Questions – Set 6

October 8, 2017
Posted by Pumpkin

I have appeared for Sr Java Developer position at Synechron Technologies. I cleared three F2F interview rounds of Synechron. I had also cleared two telephonic rounds with Synechron's client Morgan Stanley. After that I was invited for last two F2F rounds with Morgan Stanley at Bangalore. Overall experience was very good. Synechron has provided TO and FRO flight […]

Morgan Stanley Interview Questions – Set 4

October 8, 2017
Posted by Pumpkin

I have appeared for Sr Java Developer position at Synechron Technologies. This was my first round with Synechron's client Morgan Stanley. It was a telephonic round. Duration : 1 hour Introduction Please tell me about technologies you have worked on, your current project and  your roles and responsibility in it. Core Java How HashMap works […]

Sapient Global Markets Interview Questions – Set 2

September 12, 2017
Posted by Rama Prasad

I applied for Junior Associate position (Java Developer) at Sapient Bangalore location. This was my second technical round with Sapient Global Markets, Bangalore. It was Skype interview.  You can also read my article for the interview experience of first technical round at Sapient.  From my interview experience with Sapient, I can say that their interviewers have some […]

Sapient Global Markets Interview Questions – Set 1

September 9, 2017
Posted by Rama Prasad

I applied for Junior Associate position at Sapient Bangalore location. Recruiter contacted me via LinkedIn. There were two technical rounds (Skype Interviews) and one managerial round. Over all experience was really good and I enjoyed entire interview process. Here are the questions asked to me in my first technical round. Write a program to swap a String […]

Object Pool Design Pattern

July 29, 2017
Posted by Dipen Adroja

Object pool design pattern is one of the Creational Design Pattern. In very simple term, this design pattern means To Reuse the objects which are very costly to create. Object pooling is creating objects of the class at the time of creation and put them into one common pool. Now whenever application needs object of that class […]

What is the use of private constructor in java?

In Java, we can use any access modifier (i.e. public, protected or private) with constructor.  So, what are the uses of making constructor private? First thing that strikes your mind is Singleton Design Pattern which is also one of the most asked Core Java Interview Question to the 3-4 yr exp Java developers.  Apart from creating singleton class, private constructor […]

Previous Posts
Total Posts : 124
follow us in feedly

Like Us On Facebook