Author: Алексей

JavaSERelevant topics

Class initialization in Java

by:

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 …

JavaSERelevant topics

Class Loaders in Java

by:

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 …

FrameworksRelevant topicsSpring

@RequestBody and @ResponseBody annotations

by:

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 …

FrameworksRelevant topicsSpring

CommandLineRunner and ApplicationRunner interfaces

by:

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 …

Build ToolsMavenOtherRelevant topics

Maven Dependency Scopes

by:

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 …

FrameworksRelevant topicsSpring

Building an Application with Spring Boot

by:

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 …

FrameworksRelevant topicsSpring

Spring Boot Tutorial

by:

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 …

JavaSERelevant topics

Guide to Java 8 Optional

by:

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 …

JavaSERelevant topics

About generics

by:

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 …

JavaSERelevant topics

About enum

by:

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 …