JBT

JBT

Variables & Types in JavaScript: A Detailed Explanation

JavaScript is a versatile language where understanding variables and types is essential. Let’s dive into the world of variables and the types they can hold, with examples to make concepts crystal clear. 1. What are Variables? Variables are containers that…

Using AI Tools in Spring Boot Applications

As artificial intelligence (AI) transforms industries, integrating AI tools into Spring Boot applications can significantly enhance the functionality of modern enterprise applications. Here’s how you can leverage AI tools in your Spring Boot projects: 1. Natural Language Processing (NLP) AI-based…

How to use optional in java 8 streams

In this article we will learn how to use optional in java 8 streams. Optional is a container object which may or may not contain null value. Some of the most important methods in Optional’s are . So now lets…

Spring Boot 2 Actuator Endpoint

Here we will talk about the Spring Boot 2 Actuator Endpoints. I will cover below points in this article. At any point you can refer GITHUB repository for Spring Boot 2 Actuator. Enable & Expose Before we work with endpoint,…

Java 14: instanceOf Pattern Matching

JDK prepares to use pattern matching in future versions. In JDK 12 pattern matching has been implemented in switch expression. And the same is being implemented to instanceOf in JDK 14 as a preview feature. In java program, instanceof include…

Spring Boot data with H2 Database

In this tutorial, we’ll learn how to use the H2 in-memory database with Spring Boot. Spring Boot support H2 just like any other database. H2 is the open-source Java SQL database. Which is mainly used for testing or POC purposes.…

Java for loop

Java for loop and enhanced for loop is a type of control flow statement which provides a compact way to iterate over a range of values. for loop repeatedly loops through the code until a particular condition is satisfied.  Over…

Switch case statement in Java

A switch statement is a conditional statement that tests against multiple cases and displays one or multiple outputs based on the matching circumstances. Unlike if-then and if-then-else statements, the switch statement can work with byte, short, char, and int primitive data types. It also works with enum types (discussed in Java Enum), the String class, and a…

Data types in Java

Java is a statically-typed language, which means that all variables must first be declared before they can be used. It means the variable’s name and types must be defined before it can be used in code. boolean bool = true;…