Java Calendar getCalendarType() MethodThe getAvailableCalendarTypes() method of java.util.Calendar class returns a Set which contains string set of all available calendar type supported by java Runtime Environment. It either returns calendar type or class name of calendar. SyntaxParameterNo parameter is passed to this method. ReturnsReturns the calendar type or class name of that calendar type. ThrowsDoesn't throw any exception. Example 1Test it NowOutput: Type of Calendar is Gregory Example 2Test it NowOutput: Type of Calendar is: gregory
Next TopicJava Calendar Class
|