java lang Long Class
Long Class in Java
The Long class wraps the value of primitive data type long into Long object. An object of type Long contains a single field whose type is long. In other words the wrapper classes create objects for primitive data types. The wrapper classes are Boolean, Byte, Character, Short, Integer, Float, Long and Double.
Java Long class provides several useful methods for converting a long to a String and a String to a long, as well as other constants and methods.
java.lang.Long Class Example
java.lang.Long Class Example 2
Following Java Long class example you can learn how to use static methods of Java Long Class. If you use static methods you need not to create the class instance. You can call static methods using the class name as reference.
java.lang.Long Class Example 3