java.lang.Long.getLong(String nm, Long val)


java.lang.Long.getLong(String nm, Long val)

package com.codingdict;



import java.lang.*;



public class LongDemo {



   public static void main(String[] args) {



      Long v = new Long(65760);



      /* returns the Long value of the system property and won't 

         print default specified value as specified system property exits */

      String str = "sun.arch.data.model";

      System.out.println(Long.getLong(str, v));



      /* returns default specified value as system property "java" 

         does not exist */ 

      System.out.println(Long.getLong("java", v));

   }

}