Java Short longValue() MethodThe longValue() method of Java Short class returns long type value of Short object by widening primitive conversion. SyntaxParametersN/A Return valuelong type numeric value corresponding to Short. Example 1Test it NowOutput: Short 100 converted into longValue is = 100 Example 2Test it NowOutput: Short -500 converted into longValue is = -500
Next TopicJava Short
|