Convert long to String in Java

Convert long to String in Java Example describes about Convert long to String in Java.

Long class helps to wrap the primitive type value of long in an object.

In addition, Long class provides several useful methods for dealing with long primitives.

When we need to Convert long to String in Java, we can use Long.toString(long l) method of Long class, This method will convert the long to String.

If you need a Long type in lieu of primitive long, you can use the method Long.valueOf(long l). This method will convert the long primitive to Long type