I want to convert a convert a VC++ code into Java, Therefore which Java datatype sholud be used to replace DWORD datatype in VC++ ?
You can use an int
if you just need a 32-bit value. If you need to perform arithmetic operations or print the value you can use a long
instead.
int i = /* 32-bit value */
long l = i & 0xFFFFFFFFL;
The long can be used as it can have values 0 to 2^32 (and more)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With