What is the longValue() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the longValue() method?
Rating:
The longValue() method returns a primitive type long value after converting the numeric value wrapped by the invoking object to a primitive type long. The longValue() method is declared as abstract in the Number class. Therefore, the classes that extend the Number class implement the longValue() method providing their own definition of the method.
Rating:
Was this information helpful?
Other articles
- What is the parseDouble() method?
- What is the decrement operator?
- String Handling
- What is ArrayIndexOutOfBoundsException?
- What is the FileReader class?