You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you multiply an int by a long in Java, the result will be a long and thus have more memory allocated. When multiplying big ints, we run the risk of an overflow (where result goes negative). By changing int to long, the product will be a long and thus not overflow.
The text was updated successfully, but these errors were encountered:
When you multiply an int by a long in Java, the result will be a long and thus have more memory allocated. When multiplying big ints, we run the risk of an overflow (where result goes negative). By changing int to long, the product will be a long and thus not overflow.
The text was updated successfully, but these errors were encountered: