Online Java Compiler By
JavaTpoint.com
import java.util.Calendar; public class JavaCalendargetCalendarTypeExample1 { public static void main(String[] args) { // creating a calendar named as cal1 Calendar calinstance = Calendar.getInstance(); // Print the calendar type of calinstance instance of calendar class System.out.println("Type of Calendar is " + calinstance.getCalendarType()); } }
Output