Core Java Tutorial Topics

Tools Supporting Java 9 New Modularity Features

By Dhiraj Ray, 11 November,2017

In this article, we will be discussing about Java 9 new modularity features, different tools which are ready for java 9 new modularity features along with tools which are not ready for java 9 new modularity features.... Read more ➤

Parse Word Document Using Apache POI

By Dhiraj Ray, 03 June,2017

In this article we will be discussing about ways and techniques to read word documents in Java using Apache POI library. The word document may contain images, tables or plain text. Apart from this a standard word file has header and footers too. Here in the following examples we will be parsing a word document by reading its different paragraph, runs, images, tables along with headers and footers. We will also take a look into identifying different styles associated with the paragraphs such as font-size, font-family, font-color etc.... Read more ➤

Random Password Generator in Java(using Passey)

By Dhiraj Ray, 02 May,2017

This article is about random password generator in java. The password generated will be alphanumeric and special characters with configurable no of characters limit. Here we will be using an exisiting open source password validation and generation library for Java called passay to generate and validate passwords by peoviding different configurable constraints.... Read more ➤

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.