Monday 5 March 2018

Java 8 ZoneId Class Introduction | Java 8 Date and Time | Java Date and Time


Click here to watch on Youtube :
https://www.youtube.com/watch?v=PQ5DsQPvn6U&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java 8 ZoneId Class Introduction | Java 8 Date and Time | Java Date and Time

ZoneIdDemo.java

import java.time.ZoneId;

public class ZoneIdDemo
{

    public static void main(String[] args)
    {
        /*
         * Returns:the zone ID, not null
         */

        ZoneId zoneId = ZoneId.systemDefault();
        System.out.println(zoneId);

    }

}

Output

Asia/Calcutta


Refer: 
https://docs.oracle.com/javase/8/docs/api/index.html?java/time/ZoneId.html

Click the below link to download the code:
https://sites.google.com/site/ramj2eev1/home/javabasics/ZoneIdDemo_intro.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/ZoneIdDemo_intro

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/4bf907c20b634049430aea37cca3f8775ef090f9/BasicJava/ZoneIdDemo_intro/?at=master

See also:

  • All JavaEE Videos Playlist
  • All JavaEE Videos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • Kids Tutorial
  • No comments:

    Post a Comment