In this example we will show the method to create a long type in Java.
Source Code
package com.beginner.examples;
public class LongType {
public static void main(String[] args) {
long num = 36000020010L; // long
System.out.println(num);
}
}
Output:
36000020010