Convert Long to String


public class Main {

  public static void main(String[] args) {

    Long lObj = new Long(10);

    String str = lObj.toString();

    System.out.println("Long converted to String as " + str);

  }

}
Home 
  Java Book 
    Runnable examples  

Data Type Long:
  1. Create Long from long value
  2. Convert Long to numeric primitive data types
  3. Convert Long to String
  4. Convert byte value to mega byte value
  5. Min and Max values of datatype long