Java 8 – new features and enhancements with examples

Java 8 – new features and enhancements with examples

Java 8 introduced lot of exiting new features and enhancements which are useful for developers . This article covers these features ( functional interfaces, lambda expression, method reference, Stream API, default and static methods in interface and more ) with short and simple examples.

Java – Try vs Try-with-Resources

Java – Try vs Try-with-Resources

JDK 7 comes with try-with-resources feature which allows automatic closing of resources without explicit finally block leading to minimal code and avoids boilerplate code required for closing of resources…

Java Custom Annotations – Read using Reflection API

Java Custom Annotations – Read using Reflection API

After reading this article , you will be able to create an Annotation in Java and Read the annotations using Java Reflection API. Java Annotations can be created as follows : @Retention(RetentionPolicy.RUNTIME) // makes the annotation available at runtime and can be...
Maven Tutorial in 7 Minutes

Maven Tutorial in 7 Minutes

Maven is a project management tool which makes it easy to manage : -> Builds -> Dependencies -> Documentation -> Reporting -> Releases -> Distribution etc Before moving further , lets look at some terminology used in Maven. Maven Terminology Project...
www.000webhost.com