Core Java
-

Polymorphism Java Example (with video)
In this post, we feature a comprehensive Polymorphism Java Example. 1. Introduction In word Polymorphism, the word Poly stands for…
Read More » -

List the interfaces a class implements
This is an example of how to list the interfaces that a class implements in Java. We are using the…
Read More » -

Get the super-class of an object
In this example we shall show you how to get the superclass of an Object. We can try to get…
Read More » -

Get an object’s class name
With this example we are going to demonstrate how to get an object’s class name. We can get the class…
Read More » -

Check where a class was loaded from
This is an example of how to check where a class was loaded from. To check where a class was…
Read More » -

Simple validation example
In this example we shall show you how to make a simple validation of a String, using a Matcher against…
Read More » -

Find duplication in strings example
With this example we are going to demonstrate how to find duplication in Strings. In order to check if there…
Read More » -

Determine if a string matches a pattern exactly
This is an example of how to determine if a String matches to a Pattern exactly. Using a Matcher to…
Read More » -

Matcher.appendReplacement example – Part 2
In this example we shall show you how to use Matcher.appendReplacement(StringBuffer sb, String replacement) API method to append to a…
Read More » -

Strip extra spaces in a string
With this example we are going to demonstrate how to strip extra spaces in a String. In short, to strip…
Read More »
