Example usage for java.util GregorianCalendar getClass

List of usage examples for java.util GregorianCalendar getClass

Introduction

In this page you can find the example usage for java.util GregorianCalendar getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:Main.java

public static void main(String[] args) {

    // create a new Main object
    GregorianCalendar cal = new GregorianCalendar();

    // print the class of cal
    System.out.println(cal.getClass());

}