-
BufferedInputStream
Read file in String with BufferedInputStream
In this example we shall show you how to read a File in String with the BufferedInputStream. To read a…
Read More » -
BufferedInputStream
Read file with BufferedInputStream
With this example we are going to demonstrate how to read a file with a BufferedInputStream. In short, to read…
Read More » -
io
Externalize arbitrary objects
public static byte[][] serializeObject(Externalizable object) throws Exception { ByteArrayOutputStream baos = null; ObjectOutputStream oos = null; byte[][] res = new…
Read More » -
io
Serialize arbitrary objects
public static byte[] serializeObject(Serializable object) throws Exception { ByteArrayOutputStream baos = null; ObjectOutputStream oos = null; byte[] res = null;…
Read More » -
ReferenceQueue
Check when an object will be reclaimed
This is an example of how to check when an object will be reclaimed. Checking when an object will be…
Read More » -
ReferenceQueue
Check when an object is no longer referenced
In this example we shall show you how to check when an object is no longer referenced. To check when…
Read More » -
management
Get JVM Start Time-Date
With this example we are going to demonstrate how to get the JVM Start Time-Date. We are using the RuntimeMXBean,…
Read More » -
management
Obtain System Properties
This is an example of how to obtain the System Properties. We are using the RuntimeMXBean, that is the management…
Read More » -
management
Get Class Path
In this example we shall show you how to get the Class Path. We are using the RuntimeMXBean, that is…
Read More » -
management
Number of current threads
With this example we are going to demonstrate how to get the number of current threads in a JVM. We…
Read More »