Java 8 Date Time API – LocalDateTime Example

java8

Along with lambda expression, virtual methods, streams and many other nice features, Java 8 has also updated a new Date and Time API which is maintained under the JSR-310. One of the greatest on this new API is that all the date and time related APIs are unified under the same package java.time. In my […]

Difference Between java.time.Period and java.time.Duration

java8

Along with lambda expression, virtual methods, streams and many other nice features, Java 8 has also updated a new Date and Time API which is maintained under the JSR-310. In my previous articles I have explained about the LocalDate and LocalTime . These new API has added very useful Period and Duration classes to ease […]

How To Convert From java.util.Date to Java 8 Date Time API?

java8

Along with lambda expression, virtual methods, streams and many other nice features, Java 8 has also updated a new Date and Time API which is maintained under the JSR-310. One of the greatest on this new API is that all the date and time related APIs are unified under the same package java.time. In my […]

Java 8 Date Time API – Instant Example

java8

Along with lambda expression, virtual methods, streams and many other nice features, Java 8 has also updated a new Date and Time API which is maintained under the JSR-310. One of the greatest on this new API is that all the date and time related APIs are unified under the same package java.time. In my […]

Java 8 Date Time API – LocalTime Example

java8

Along with lambda expression, virtual methods, streams and many other nice features, Java 8 has also updated a new Date and Time API which is maintained under the JSR-310. One of the greatest on this new API is that all the date and time related APIs are unified under the same package java.time. In my […]

Java 8 Date Time API – LocalDate Example

java8

Along with lambda expression, virtual methods, streams and many other nice features, Java 8 has also updated a new Date and Time API which is maintained under the JSR-310. One of the greatest on this new API is that all the date and time related APIs are unified under the same package java.time. This example […]

Spring MVC – component-scan Vs annotation-config Vs annotation-driven

spring-thumbnail

If you are a spring developer then you might have a small confusion about the annotation processing inside spring’s IOC container. Spring MVC framework provides different configuration elements that are helping or instructing the Spring container to effectively manage the beans and inject the beans when required. Some of the XML configurations that are most […]

Spring MVC – Application Context vs Web Application Context

spring-thumbnail

There is lot confusion on Spring context loading techniques. The confusion due to the different context configuration files, the question comes to developers mind is that why would we need two different context configurations files and when these files are loaded by the spring container?. This post summarizes some of the important facts about both […]

OCAJP 8 – Java 8 Date Time API

ocajp7

One of the new and noteworthy introduction in the Java 8 version is update of the Date Time API. Since the initial version of the Java packages, there is no standard API for calculating the date and time data. In the previous versions, there are two packages java.util and java.sql defines the date and time […]

OCAJP 8 – Lambda Expression / Predicate

ocajp7

This tutorial is a preparation material for OCAJP certification exam. This covers the objective 9.5 in the OCAJP 8 exam topics (Write a simple Lambda expression that consumes a Lambda Predicate expression). The mock exams that would appear on the real exams could be simpler than the sample mock exams in this tutorial. Java is […]