The getChronology() method of ChronoLocalDateTime interface in Java gets the chronology of this date of the calendar system in use.
default Chronology getChronology()
Parameter: This method does not accept any parameter.
Return Value: It returns the chronology and not null.
Below programs illustrate the getChronology() method of ChronoLocalDateTime in Java:
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.