Core Java Tutorial


How Effective are Java 10 Features: A Brief Look

By Natasha, 04 June,2018

The release of Java 10, mere six months after the release of Java 9 on September 21, 2017 attracted much speculation. This was significant as it brought to the forefront Oracle’s new release cycle. As per the new accelerated release cycle, every six months a new version of Java will be released. Moreover, Oracle is also poised to release a LTS version every 3 years, which is a kind of major Java release.... Read more ➤

AES Encryption in Javascript and Decryption in Java

By Dhiraj Ray, 14 February,2018

AES stands for Advanced Encryption System and it's a symmetric encryption algorithm.Many times we require to encrypt some plain-text such as password at the client side and send it to server and then server decrypts it to process further.AES encryption and decryption is easier to implement in the same platform such as Android client and Java server but sometimes it becomes challenging to decrypt an AES encrypted password in cross-platform environment such as Javascript client and Java Server as spring mvc framework because if any system defaults do not match then the decryption will fail.... Read more ➤

AES Encryption and Decryption in Java(CBC Mode)

By Dhiraj Ray, 17 December,2017

Transmitting confidential data such as plain text password through wire is always vulnerable to security.It is always recommended to encrypt such information and use SSL to transmit those confidential data.Java provides multiple encryption algorithm for this.In this post, we will be discussing about AES(Advanced Encryption Standard) symmetric encryption algorithm in java with CBC mode which is faster and more secure than 3DES.... Read more ➤

SMPP Java Example(Client)

By Dhiraj Ray, 03 December,2017

This article provides SMPP java example by creating a simple SMPP client that sends short messages to mobile subscriber.Using this client either we can make simple submit to send message to a single mobile subscriber or can broadcast a message to multiple mobile subscribers in one shot.Also, we will verify the delivery receipt. For the client purpose we will be using existing java SMPP client library... Read more ➤

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 ➤