Core Java Tutorial Topics

Overriding Equals and Hashcode Method in Java Example

By Dhiraj Ray, 25 February,2017

In this article we will be discussing about what is equals() and hashcode() method defined in Object class in java along with why is it required to override them. We will also take a look into how to override these methods, the contract between equals() and hashcode() method,... Read more ➤

Comparable and Comparator in Java with Example

By Dhiraj Ray, 22 January,2017

In Java when it comes to sort any collections,comparable and comparator comes into picture.Comparable and Comparator are two interfaces provided by Java Core API.Here we will take a look into why Comparable and Comparator are used for sorting though there are inbuilt methods provide... Read more ➤

Why Wait(), Notify() and NotifyAll() Defined in Object Class

By Dhiraj Ray, 21 January,2017

Many developers are keen to know why wait, notify and notifyAll methods are defined in object class in java rather than in Thread class.Also, this is one of the favourite questions of an interviewe to test the basic concepts on multithreading.Hence, here we will try to... Read more ➤

Hello World Java Program Breakup

By Dhiraj Ray, 20 October,2016

The vary first program any programmer starts with is the Hello World program.Any of the Hello World program is though very basic and simple, the core concept and foundation of that programming language reides in it.Hence, today we will look into a simple program in java.We will be precisely observing the breakdown of Hello World program of java and closely look into the java... Read more ➤

How to Sort HashMap by Key and Value

By Dhiraj Ray, 19 October,2016

HashMap is a class in Java that implements Map interface and holds values based on an unique key.As we know HashMap is an unsorted and unordered Map. Hence, requirements come where we need to sort the HashMap either by its key or values.In this post, we will take a look into how to sort a HashMap by key as well as by value.... Read more ➤

How to Convert HashMap to List

By Dhiraj Ray, 19 October,2016

HashMap is a class in Java that implements Map interface.It is an unsorted and unordered map whereas ArrayList implements List interface and maintains insertion order.Here we will try to convert a HashMap into an ArrayList.... Read more ➤

Suggest more topics in suggestion section or write your own article and share with your colleagues.