We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Long is wrapper data-type. long is a primitive data-type.
Long can be seen as Java Object. Long class has various usefull functions Like toString,compare defined in the class. Generally these are not available to long data-type. Also underneath Long it does implement long.
Various other primitive vs Wrapper data types are:
int vs Integer
char vs Character
etc etc
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
Long is wrapper data-type. long is a primitive data-type. Long can be seen as Java Object. Long class has various usefull functions Like toString,compare defined in the class. Generally these are not available to long data-type. Also underneath Long it does implement long.
Various other primitive vs Wrapper data types are: int vs Integer char vs Character etc etc