Currently browsing tag

Java Lang


NullPointerException in Java

One of the most common and nightmare for the Java programmers are getting the NullPointerException while running the Java application. This exception …


How To Get JVM Start Time And Date

This example shows how to get the start time and date for the current execution environment of Java Virtual Machine (JVM). RuntimeMXBean …



NoSuchMethodError is thrown when a Java class trying to invoke a method from another class which is not exist. Typically, this error …


Java equals() and hashcode()

This tutorial explains the equals() and hashcode() method in simple terms. It is one of the confusing questions on the Java developer’s …


Java Math.random() Example

In Java, there is a method random() in the Math class, which returns a double value between 0.0 and 1.0. Note that …

Pin It on Pinterest