Class initialization in Java
Class initialization means initializing all static members of the class. Class in Java is initialized when : An instance of the class is created using either …
Class Loaders in Java
Class loaders are responsible for loading Java classes during runtime dynamically to the JVM. They are part of JRE. JVM doesn’t need to know about the …
@RequestBody and @ResponseBody annotations
Simply put, the @RequestBody annotation maps the HttpRequest body to a transfer or domain object, enabling automatic deserialization of the inbound HttpRequest onto a Java object. The example …
CommandLineRunner and ApplicationRunner interfaces
Spring Boot provides two interfaces to run specific pieces of code when an application is fully started. These interfaces get called just before run() once SpringApplication …
Maven Dependency Scopes
Maven Dependency Scope attribute is used to specify the visibility of a dependency, relative to the different lifecycle phases (build, test, runtime etc). Maven provides six …
Building an Application with Spring Boot
To launch Spring Boot Application developer needs to do the following : Add dependencies provided by Spring Boot to a project. This can be done in …
Spring Boot Tutorial
Spring Boot favours convention over configuration and is designed to get developer running application as quickly as possible. Spring Boot uses completely new way of Java …
Guide to Java 8 Optional
Optional class was introduced in Java 8. The purpose of using the class is to provide a type-level solution for representing Optional values instead of null …
About generics
Arrays in Java have always been type-safe : for example, an Array declared as type String (String ) cannot accept Integers (or ints) or anything other …
About enum
As of Java 5, Java lets developers restrict a variable to having one of only a few predefined values – in other words, one value of …