How to Create a Long Type in Java


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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments