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.
The range of each data type goes both ways (negative & positive). If it can store up to Math.pow(2,15), it will work for all numbers from negative 2^15 to positive 2^15
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Datatypes
You are viewing a single comment's thread. Return to all comments →
The range of each data type goes both ways (negative & positive). If it can store up to Math.pow(2,15), it will work for all numbers from negative 2^15 to positive 2^15