How to work with Java Custom Exception

Java Exception has 2 types: CheckedException & UnCheckedException as discussion in Understand Java Exception & The effect to Java Program (Single & Multi Thread). The Java Custom Exception tutorial will introduce how to customize them by example.
Related Article:
How to handle Java Exception

[Continue reading…] “How to work with Java Custom Exception”

Understand Java Exception & The effect to Java Program (Single & Multi Thread)

In the tutorial, JavaSampleApproach will introduce Java Exception and its effect to program’s execution in Single & Multi Thread Program.
Related post:
Java 7 – try-with-resources Statement
How to handle Java Exception

[Continue reading…] “Understand Java Exception & The effect to Java Program (Single & Multi Thread)”

Java Regular Expression to mask information from a Text

This tutorial shows you how to mask information from a Text using Regular expression.

Related articles:
Java Regular Expression Overview – Syntax
Java Regular Expression to extract data from a Text

[Continue reading…] “Java Regular Expression to mask information from a Text”

Java Regular Expression to extract data from a Text

This tutorial shows you how to extract data from a Text using Regular expression.

Related article: Java Regular Expression Overview – Syntax

[Continue reading…] “Java Regular Expression to extract data from a Text”

Java Regular Expression Overview – Syntax

Regular expression (regex) defines patterns to recognise strings. Those patterns can be anything: a character, a specific string, a group of special characters or a combination of them. We can use Regular expression for searching, extracting, and modifying text.
This tutorial shows you an overview of Regular Expression Syntax.

[Continue reading…] “Java Regular Expression Overview – Syntax”

How to convert String to Int (Integer) & Int (Integer) to String

In the tutorial, JavaSampleApproach will guide you how to convert String to Int (Integer) & vice versa.

[Continue reading…] “How to convert String to Int (Integer) & Int (Integer) to String”

Java Future

In multithreaded programming, Java Future with Callable is very important for tasks which we want to know status and get the returned object.

This article give us an example for how to work with Future and Callable inside.

Related Articles:
Java Thread Pool – ExecutorService
Java 8 CompletableFutures
Java 8 CompletableFuture Handle Exception
Java 8 Multiple CompletableFutures

[Continue reading…] “Java Future”