Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.TimeZone;

public class Main {
    public static void main(String args[]) {

        // create default time zone object
        TimeZone timezonedefault = TimeZone.getDefault();

        // get display name
        String disname = timezonedefault.getDisplayName(true, TimeZone.LONG);

        // checking display name         
        System.out.println("Display name is :" + disname);
    }
}