core java
-
Runtime
Suggest Garbage Collection to the JVM
With this example we are going to demonstrate how to suggest Garbage Collection to the JVM. We are using the…
Read More » -
Runtime
Get JVM memory information with Runtime
This is an example of how to get the JVM memory information with Runtime class. Every Java application has a…
Read More » -
Runtime
Get number of processors with Runtime
In this example we shall show you how to get the number of processors with Runtime class. Every Java application…
Read More » -
StringBuffer
StringBuffer delete characters
With this example we are going to demonstrate how to delete characters using a StringBuffer. A StringBuffer is a thread-safe,…
Read More » -
StringBuffer
StringBuffer reverse method
This is an example of how to use the reverse method of StringBuffer. A StringBuffer is a thread-safe, mutable sequence…
Read More » -
StringBuffer
StringBuffer insert method
In this example we shall show you how to use insert method of StringBuffer. A StringBuffer is a thread-safe, mutable…
Read More » -
StringBuffer
StringBuffer replace method
With this example we are going to demonstrate how to use replace method of StringBuffer. A StringBuffer is a thread-safe,…
Read More » -
StringBuffer
StringBuffer append method
This is an example of how to use append method of StringBuffer. A StringBuffer is a thread-safe, mutable sequence of…
Read More » -
String
Compare Strings
In this example we shall show you how to compare Strings. We are using the methods that the String class…
Read More » -
String
String replace method
With this example we are going to demonstrate how to use the replace method of String class. The String class…
Read More »