Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.SimpleTimeZone;

public class Main {
    public static void main(String args[]) {
        // create two simple time zone objects 
        SimpleTimeZone stobj1 = new SimpleTimeZone(720, "India");
        SimpleTimeZone stobj2 = new SimpleTimeZone(720, "India");

        // compare two objects      
        System.out.println("Comparison result: " + stobj1.equals(stobj2));
    }
}