Category: Java

java tutorials

How to Create a File in Java

This tutorial shows you how to create a file using java. First we explore the old way using the File class. Next we explore the new Path class introduced in Java 7. Create a...
java tutorials

List all System Properties in Java

This example show how you can list all system properties of a running java application. You can use this as a reference to look up which properties are by default available. Print System Properties...
java tutorials

Get Uptime Operating System Windows, Mac, Linux

This example shows you how you can get the uptime for different operating systems like Windows, Mac or Linux. In windows, you can execute the net stats srv command. In Unix, you can execute...
java tutorials

How to get Uptime Java JVM running Application

This tutorial shows you how to get the uptime (in milliseconds) of your running JVM/java application. This could be used to display in a fancy dashboard for your users or administrators. We can obtain...