Does Java have default parameters?

4 years ago
Daniel

Short answer: No.Fortunately, you can simulate them.Many programming languages like C++ or modern JavaScript have a simple option to call…

Understanding JavaScript Promise

The JavaScript Promise is a concept that every modern self-respecting web developer should be familiar with. No matter if you…

5 years ago

What is Spring bean?

In short, a Spring bean is an object which Spring framework manages at runtime. A Spring bean is a basic…

5 years ago

Injecting Spring Prototype bean into Singleton bean

Have you ever wonder why singleton is the default scope for Spring beans? Why isn't it prototype? It’s not a…

5 years ago

How to bind @RequestParam to object in Spring

Do you have multiple parameters annotated with @RequestParam in a request mapping method and feel it isn’t readable? The annotation…

5 years ago

Activating Spring Boot profile with Maven profile

Some teams prefer having a separate Maven build profile for each application runtime environment, like dev, test, prod, etc. In…

5 years ago

The JavaScript runtime environment

Have you just started learning JavaScript? Or maybe you already have some language experience but want to understand JavaScript runtime…

5 years ago

Spring Boot application.properties file

Spring Boot comes with a built-in mechanism for application configuration using a file called application.properties. In this article, I’ll show…

5 years ago

Spring Custom Validator by example

Since you're here, you probably reach the point in which standard annotations like @NotNull or @Size don't meet your expectations.…

5 years ago

Saving Java enum in database as String

Saving enum values in a relational database is a bit more tricky than primitives, Strings, and regular immutable value wrappers.…

5 years ago