Search Results for: java 8
-
Java Basics
Simple Do While loop Java Example
1. Introduction A do-while loop in Java is a control flow statement that executes a block of code at least once, and then repeatedly executes…
Read More » -
while loop
Simple while loop Java Example (with video)
1. Introduction With this example we are going to demonstrate how to use a simple while loop Java statement. The…
Read More » -
break/continue statement
Java Break Statement Example
This is an example of how to use the java break statement. 1. Java Break overview The break statement can be…
Read More » -
break/continue statement
Continue Java Statement
1. Continue Java Statement In this example, we shall show you how to use the continue keyword statement in Java.…
Read More » -
if/else statement
Simple if else Java Example
In this post, we feature a simple if else Java Example. The Java if statement is used to test a…
Read More » -
exceptions
Java throw Exception Example
In this post, we feature a comprehensive Java throw Exception Example. 1. What is an Exception in Java? Exception is…
Read More » -
generics
Java Generics Examples
1. Introduction Sun Microsystems included Java Generics in java 1.5 to introduce the type-safety feature while using the collection classes. It…
Read More » -
statics
Static Variable Java Example
1. Introduction This is a static variable Java Example. Static variables are declared with the static word before the type…
Read More » -
spring
Modernizing Deprecated jdbcTemplate Methods in Spring Boot 2.4.X and Beyond
The queryForObject() method in Spring’s JdbcTemplate executes a SQL query and returns a single object, typically used when expecting a…
Read More »