Code Pumpkin

Tag Archives: Java

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 […]

Java Method Overriding Interview Questions

December 17, 2017
Posted by Abhi Andhariya

In our previous article, we have discussed tricky programming questions based on method overloading. However, Method overriding programming questions are more interesting and requires depth understanding of the concept than that of method overloading. Before moving to programming questions, lets understand the basic concepts of method overriding. Method Overriding Using method overriding, child class can […]

Java Method Overloading Interview Questions

December 15, 2017
Posted by Abhi Andhariya

After interviewing large set of candidates, we have come to conclusion that most of them fail to satisfactory explain basic OOPs concepts like difference between abstraction and encapsulation, static binding vs dynamic binding, co-varient return types, access modifiers scoping and checked exception handling in method overriding and overloading. Even if they are able to explain it well, interviewer […]

Marker Interface Interview Questions

December 12, 2017
Posted by Abhi Andhariya

The interface in java is a mechanism to achieve abstraction and it is one of the most discussed topic in entry and mid level java developer interviews. In our previous articles, we have seen various interface related topics like Interface Evolution in Java, Difference between interface and abstract class and Functional interface in java 8. In this post, we are going to […]

What is magic number CAFEBABE in java class file?

November 29, 2017
Posted by Abhi Andhariya

Java Compiler compiles a java source code into bytecode and stores it into .class file which will then get executed by JVM. Everybody knows about it. But do you know each class file in Java starts with magic number CAFEBABE?  compelling, isn't it? ūüėÄ  After reading this article, you will be able to answer below questions: […]

Find from where java class is loaded | Class Loader SubSystem

November 1, 2017
Posted by Riteeka Rathod

In previous article, we discussed about 3 activites of Class Loader SubSystem i.e. Loading, Linking, Initialization and its Types of Class Loader  i.e. Bootstrap Class Loader or primordial Class Loader, Extension Class Loader, Application Class Loader or System Class Loader. We have also seen how these Class loader uses Delegation hierarchy algorithm  to load Classes into memory area. In this article we'll discuss more about Class Loader and how […]

What is optional and why it is there? | Java8

October 29, 2017
Posted by Dipen Adroja

Have you ever been tired of putting null checks all over the code to avoid any unnecessary NullPointerExceptions. Java 8 has introduced a new class Optional in java.util package. It is used to represent a value is present or absent. The main advantage of this new construct is that No more too many null checks and NullPointerException. It avoids […]

Performance Issue with HashSet RemoveAll() method

October 12, 2017
Posted by Abhi Andhariya

In our previous article on HashSet internals, we have seen internal implementation of its add(), remove(), contains(), clear(), iterator() and isEmpty() methods. One of our readers has raised question about How efficient is HashSet removeAll() method? As it requires detailed explanation, we have decided to write separate article on it.   What does removeAll() method do? Before going into internals of […]

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 5

October 8, 2017
Posted by Rahul Jain

I have appeared for Java Developer requirement at Wissen Infotech, Bangalore Location. Requirement was for their client Morgan Stanley and it was my second telephonic interview round with Morgan Stanley. Duration : 30 Minute. I have also shared my interview experience with Wissen Infotech as well as my first interview round with Morgan Stanley.  Tell me about your […]

Previous Posts Next posts
Total Posts : 122
follow us in feedly
Contribute Your Articles

Subscribe Us

Like Us On Facebook