java.util.TimeZone.clone() 方法


java.util.TimeZone.clone() 方法

package com.codingdict;

import java.util.*;

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

      // create object of TimeZone class.
      TimeZone timezoneobj = TimeZone.getDefault();
      System.out.println("Original object: " + timezoneobj);

      // cloning time zone object
      Object objClone = timezoneobj.clone();      
      System.out.println("Clone object: " + objClone);
   }    
}