Can we run a Java program which uses 64bit datatypes like long
and double
on a Windows 32bit machine?
Asked
Active
Viewed 1,936 times
0

Jonny Henly
- 4,023
- 4
- 26
- 43

Dilip Kumar
- 65
- 1
- 10
-
64bit datatypes and a 64bit Java program are not the same thing, and the answer is yes. – Jonny Henly Oct 07 '16 at 18:23
-
Its not clear yet to me. Please point me to a good resource to understand better. – Dilip Kumar Oct 07 '16 at 18:28
-
I'd do a google search, that should point you to many resources. – Jonny Henly Oct 07 '16 at 18:45
-
2@DilipKumar [Java 32-bit vs 64-bit compatibility](http://stackoverflow.com/q/783662/1248974), https://www.quora.com/Can-Java-code-compiled-using-64-bit-jdk-run-on-32-bit-jre – chickity china chinese chicken Oct 07 '16 at 19:28
1 Answers
1
Yes, of course. A java program is an intermediate byte code and not platform dependant. There is no such thing like "64 bit java program". But the JVM which runs the java program is of course platform dependant. On a 32bit machine you have to use a 32bit JRE or JDK, and vice versa.
See also java-32-bit-vs-64-bit-compatibility