Code
public class main {
public static void main(String[] args) {
System.out.println(1101101101*10);
}
}
OUTPUT
-1873890878
I do the same thing in python it gives the output.
Microsoft Windows [Version 10.0.19044.2251]
(c) Microsoft Corporation. All rights reserved.
C:\Users\pradeep>python
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 1101101101*10
11011011010
How can I solve this in java ?