Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

How to throw an exception in Java

In this article we will show How to throw an exception in Java. 1. What are Exceptions? Exceptions are events that occur during the execution of programs that disrupt the normal flow of instructions (e.g. divide by zero, array access out of bound, etc.). Exception objects can be thrown and caught. 2. Types of exceptions There are two types of exceptions in Java: checked ...

Read More »

Java Exceptions List Example

In this article we will discuss the Java exceptions list. We will discuss what are exceptions, when they occur and their types. 1. What is An Exception in Java? Exception is mechanism which Java uses to handle any unforeseen use-case/scenario. Basically an exception is thrown when either something unexpected happened during code execution which is not covered in any code ...

Read More »

String equalsIgnoreCase() Java Example

In this post, we feature a comprehensive article about the equalsignorecase Java ‘s String Method. 1. Introduction Java String class has provided the equalsIgnoreCase method to compare this String to another String by ignoring case since version 1. Here is the method’s signature: boolean equalsIgnoreCase​(String anotherString) The String class inherits the equals method from the Object class. It returns true if and only if the argument ...

Read More »

Remove element from an Array Java Example

Hello readers, in this tutorial, we will learn two different ways to remove an element from an array. 1. Introduction In Java programming, Arrays represent an index-based object that consists of the same data type elements. The array elements are stored in a common memory location and can store only a fixed number of elements. Arrays offer, Code Optimization Random ...

Read More »

What is null in Java

In this article, we will discuss the null in java. Java and null share a unique bond across the board, whether we are using it as a default or placeholder or being used as a filler for a variable intentionally. 1. What is null and why it is used? Recall what a variable is and what a value is. A ...

Read More »

SQL Temp Table Example

Welcome readers, in this tutorial, we will learn how to use the temporary tables in the database. 1. Introduction A temporary table is a table that, Is only visible to the current session Is automatically dropped when the current session is closed Is permanently not stored in a database; therefore, it is effective for the testing purpose Is only available ...

Read More »

Interface vs Abstract Class Java Example

In this post, we feature an Interface vs Abstract Class Java Example. One of the most discussed topics in Java for newbies is the Interface and Abstract class. I will give insights into the Java Interfaces and abstract classes. I will also provide some examples and practical use cases. 1. Introduction Abstraction, Encapsulation, and Inheritance are the basic ingredients of ...

Read More »

Scanner hasNext() Java Example

This article will feature a comprehensive Example on Java Scanner hasNext method. We will also understand the hasNext method of Iterator interface with suitable example. 1. Introduction In Java, Scanner is a simple text reader which can parse primitive types and strings using regular expressions. It has been added to JDK 1.5. It breaks its input into tokens using a ...

Read More »

Spring Form Validation Example

In this example, we will show how to implement server-side form validation in a Spring MVC application. 1. Introduction Form validation is a basic requirement for web applications that accept data as input. For example, you may want to ensure that an email address or credit card number sent in a request is valid before processing the data. There are ...

Read More »

Array methods Java Tutorial

In this post, we feature a comprehensive Array methods Java Tutorial. 1. Introduction to Arrays in Java In java Arrays can be think of the sequential collection of objects. An array can contain a number of items which are all located next to each other in memory. If the number of items in an array is zero, then the array ...

Read More »