Core Java Interview Questions Archive
In this article, the Difference between HashMap and IdentityHashMap, we will discuss IdentityHashMap and difference between IdentityHashMap and HashMap. In previous articles, we have discussed very interesting topics such as How does HashMap work internally, …
In this article of HashMap performance Improvement Changes in Java 8, we will discuss an interesting change made in Java 8. The Oracle made this change in HashMap due to performance factor. The HashMap has …
It is a very important thing in choosing the right map to use in Java development. Developers must have a clear understanding of all map implementation in java. And also, the right decision to choose …
In very short Encapsulation:– Information hiding. and Abstraction:– Implementation hiding. Abstraction vs Encapsulation Abstraction and Encapsulation both are OOP concepts of any object oriented programming languages which allow us to wrap real world things into …
Checked Exception There are many exceptions in programming which occurs regularly but there are some exceptions in the program will be checked by compiler at compile time, those exceptions are called Checked Exceptions. Suppose some …
How to reverse String in Java without StringBuffer is one of the popular core java interview question. If you are using StringBuffer or StringBuilder to reverse string then it is too easy because both classes …
SimpleDateFormat is an excellent utility class for formatting and parsing dates in a re-presentable manner. It allows for formatting Date to String and parsing String to Date. SimpleDateFormat allows you to start by choosing any …