java.util.SimpleTimeZone.clone() 方法


java.util.SimpleTimeZone.clone() 方法

package com.codingdict;

import java.util.*;

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

      // create simple time zone object
      SimpleTimeZone stobj = new SimpleTimeZone(720,"India");
      System.out.println("Origial obj: " + stobj);

      // clone the object
      Object cloneObj = stobj.clone();
      System.out.println("Clone obj: " + cloneObj);
   }    
}