Java 8 – How to find Date on the day of given Week in a month ?

Java 8 – How to find Date on the day of given Week in a month ?
DeeKay December 6, 2016 at 9:17 pm · java.time

In this Java 8 program we will see how to find date on the day of given week in a month. For example if we want to find the date on 3rd Wednesday of current month.  


What is the difference between HashTable and HashMap in Java?

What is the difference between HashTable and HashMap in Java?
DeeKay December 2, 2016 at 3:12 am · java.util

Both HashTable and HashMap are java collections and implements java.util.Map interface. Difference between HashTable and HashMap is the most common interview question. Many of the candidates who face the interview struggle to answer this question. Difference between HashTable and HashMap in Java Thread Safe: HashTable is thread-safe and can be shared between multiple threads but…
Continue Reading »


How to Sort a Map by key in Java?

How to Sort a Map by key in Java?
DeeKay November 20, 2016 at 2:00 am · java.util, sorting

Here we will see how to sort a Map by key in java. There are two ways to sort a Map by Key –   First Approach Second Approach


How to make SFTP or SSH connection using public key authentication in java?

How to make SFTP or SSH connection using public key authentication in java?
DeeKay May 11, 2015 at 7:32 pm · How To

Using SSH public key authentication to make the connection to remote system is more secure and robust method than login with account password. SSH public key authentication is an authentication method that relies on asymmetric cryptographic algorithms that generate a pair of  separate keys, one private and the other public. Private Key is the secret key which is…
Continue Reading »


How To Setup SSH Public Key Authentication To Connect Remote System ?

How To Setup SSH Public Key Authentication To Connect Remote System ?
DeeKay April 29, 2015 at 3:22 am · How To

Overview Nowadays passwords are not much secured. If you pick a strongest password including all upper case, lower case alphabet and numbers with special characters, the password is still susceptible to the brute-force attack. It’s a human nature to use a same password for different remote hosts which can put you at more risk of a…
Continue Reading »


How to write Bubble Sort in Java ?

How to write Bubble Sort in Java ?
DeeKay September 16, 2014 at 12:58 am · JAVA API, sorting

We all have learnt sorting techniques in our college academic curriculum. Out of those sorting techniques the simplest technique we learnt is Bubble Sort Implementation in Java. The Bubble sort takes an array of numbers and sort them within the array indexes in either ascending or descending order. Bubble sort is simplest of all sorting…
Continue Reading »


How To Send a Plain Text EMail in Java using JavaMail API ?

How To Send a Plain Text EMail in Java using JavaMail API ?
DeeKay May 5, 2014 at 12:28 am · javax.mail

Java Mail API is used to create your own email client. This class provides the code required to model your email client similar to Outlook, Hotmail and many others. In JavaMail you’ll find APIs and provider implementations allowing you to develop fully functional email client applications. Below java program shows you how to send a plain text…
Continue Reading »


How to use Preferences API to store application/Program configurations ?

How to use Preferences API to store application/Program configurations ?
DeeKay October 16, 2013 at 3:32 am · java.util

Introduction Preferences (Java.util.pref) API is included in JDK can be used to remember and retrieve application preferences. Using this API you can manage preference data such as storing, retrieving, removing and cleaning preference data. This API is not intended to save application data. Also it reduces the burden of application developer to write the code…
Continue Reading »


Nodejs HelloWorld Example

Nodejs HelloWorld Example
DeeKay January 2, 2013 at 5:08 am · Nodejs

This tutorial is the quick guide to show you how to write the classic “Hello World!!!” example in Nodejs. This example is using the 0.8.x version of Nodejs installed on Windows 7. Install Nodejs Refer this article for installing Node.js on Windows. This installation very easy and it starts with downloading the executable on windows…
Continue Reading »


Installing Node.js on Windows

Installing Node.js on Windows
DeeKay January 2, 2013 at 4:25 am · Nodejs

In this tutorial we will show you how to install the Node.js on Windows and Linux. This example shows you installation of Node.js version 0.8.16. 1. Node.js Installation on Windows Below steps shows you how to install Node.js on Windows – Download Node.js Download Node.js from official Node.js website. Choose appropriate version and click to…
Continue Reading »