Java TimeZone getDefault() MethodThe getDefault() method is of TimeZone class is used to get default TimeZone for the host. SyntaxReturnsIt returns the default TimeZone. Example 1Output: The Default TimerZone : sun.util.calendar.ZoneInfo[id="Asia/Calcutta",offset=19800000,dstSavings=0,useDaylight=false,transitions=7,lastRule=null] Next TopicJava-timezone-getdisplayname-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India