Wednesday, October 30, 2019

Java 13 API - What Are New Features? (JDK 13 Changes)

1. Introduction


In this article, We will learn what are the new features of Java 13 that are added to JDK 13.

Download JDK 13 from the Oracle official website.

Now we are going to learn about the following new changes step by step. Before that, you may have a question that "Is really JDK 13 has major changes?". Because a new java release is expected for every six months. So, Raising this question is common. Answer to this question is "no" changes are very minor. This does not impact the core developers. Except who closely works on CDS, ZGC, Socket API, and switch expressions (It is good to know).

Below is the complete list of changes in JDK 13.



JEP 350: Dynamic CDS Archives
JEP-351: ZGC: Uncommit Unused Memory
JEP-353: Reimplement the Legacy Socket API
JEP-354: Switch Expressions (Preview) (developer feature)
JEP-355: Text Blocks (Preview) (developer feature)

From this list, the first 3 changes can be used directly but the last two are in preview (developer feature). So, We can not use them directly. You will understand how to use the preview functionalities as we go through them each.

Tuesday, October 29, 2019

Beginners Guide to Spring Email (Spring Boot)

1. Overview


In this article, We'll learn how to send an email using Spring or Spring Boot through step by step procedure. This is absolutely designed for beginners.

In this tutorial, We will see the following as required to send mail in the spring framework with a step by step.


  • Maven dependencies for spring and spring boot.
  • Understanding the common mailing terminologies in spring.
  • Spring and spring boot mailing properties.
  • Sending simple sample spring email examples.
  • Sending emails with an attachment.
  • Construction and sending an email template.
  • How to handle email sending errors.




Wednesday, October 23, 2019

Java Program to Check Leap Year

1. Introduction:


In this program, you'll learn to check if the given year is a leap year or not. This is checked using a if else statement.

A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is a leap year only if it is perfectly divisible by 400.

Java Program to Check Leap Year