Java Long(long value) Constructor
Syntax
Long(long value) constructor from Long has the following syntax.
public Long(long value)
Example
In the following code shows how to use Long.Long(long value) constructor.
public class Main {
public static void main(String[] args) {
Long long1 = new Long(12345L);
// ww w . j a va 2s.c o m
System.out.println(long1);
}
}
The output: