Code Pumpkin

Category Archives: Core Java Interview Questions

Subscribe

Marker Interface Interview Questions

December 12, 2017
Posted by Pumpkin

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 on interface, we have seen various interface related topics like  Interface Evolution in Java  Difference between interface and abstract class  Functional interface in java 8  In this […]

What is magic number CAFEBABE in java class file?

November 29, 2017
Posted by Pumpkin

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

Sapient Global Markets Interview Questions – Set 3

Hey everyone, I am writing this article for the people who wants to appear for Sapient Global Markets. I appeared for Senior Application Developer I in Sapient Global Markets Bangalore on August 2017. I would Like to share my experience with you guys. I will cover Technical round question and some brief intro of Sapient GM process. […]

How is HashSet implemented internally in Java?

September 27, 2017
Posted by Pumpkin

In our previous article, we have seen internal implementation of SynchronizedMap and the difference between HashMap, Hashtable, SynchronizedMap and ConcurrentMap.  In this article, we will understand how does HashSet work internally? How JDK implementers have reused HashMap effectively for HashSet implementation.   The best way to understand internal implementation of any built-in Java class is by looking into its […]

Hashtable vs SynchronizedMap vs ConcurrentHashMap

Java Collection classes are heart of Java API.  It is essential to use built-in java collections like HashMap, ArrayList or LinkedList for accessing, storing and processing data in java applications. For Example, we have extensively used HashMap to transfer data between two layers of our MVC framework.   In all core java interviews, you will definitely face questions on […]

Class Loader SubSystem | JVM Internals

August 5, 2017
Posted by Pumpkin

​In our previous article of JVM internals series, we learned about what is JVM, basic architecture of JVM and briefly understood its components. In this article we will discuss in detail about Class Loader SubSystem component of JVM architecture . Class Loader SubSystem Java’s dynamic class loading functionality is handled by the Class Loader SubSystem. […]

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

Interface vs Abstract class in Java

July 7, 2017
Posted by Pumpkin

Interface has been evolved a lot in last two releases of java. Refer interface evolution in java for the same. However, there are still many differences between interface and abstract class. It is one of the most asked interview questions for entry level java developer interviews. Even though both are used to achieve abstraction in java, there are significant differences […]

How does HashMap work internally in Java?

How does HashMap work internally in java is one of the most asked core java interview questions. Most of the candidates do not give the satisfactory explanation. This question shows that candidate has good knowledge of Collection. So this question should be in your TO-DO list before appearing for the interview. There are four things we should […]

How to create Immutable Class in Java

Immutable class is a class which once created, it's contents can not be changed. Immutable objects are the objects whose state can not be changed once constructed.  In Java, String  and all the wrapper classes e.g. Boolean, Integer, Long, etc are immutable classes. We can create our own immutable class as well. Joshua Bloch's Effective Java has a very good explanation about why you […]

Previous Posts

Total Post : 82
Subscribe
Contribute Your Articles

Interview Experiences

Related Books

Like Us On Facebook

Alexa Page Rank