Why does the output of the following code output 1345094336 instead of 39999800000? And how should i edit it? I believe it has got to do with integer overflow.
public class testC {
public static void main(String[] args) {
long product = 199999 * 200000;
System.out.println(product);
}
}