Currently browsing tag

Java Lang

java-thumbnail

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 …

java-thumbnail

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 …

java-thumbnail

java.lang.NoSuchMethodError

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

java-thumbnail

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-thumbnail

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 …