Collection and Collection Framework

Before going ahead, read why we do we need collection in java published in previous post. What is Collection? If we want to represent a group of...

Why do we need collections in Java

Before using any collections in java we should have knowledge that why do we need collections. Suppose, If collections were not there in Java  and we...

Duration Example Java 8

The Duration (java.time.Duration package) is the amount of time between two Instant’s, between two LocalDateTime or between two LocalTime . Using Duration we measures time in seconds...

Java 8 Period Example

A Period (java.time.Period package) is the amount of time between two LocalDate ,measuring time in years, months and days. Let see Period by different example: 1)...