Can a .class file generated using a 32 bit java compiler be used on a 64 bit system with 64 bit JVM?
Yes. Java byte code is independent from 32/64/... bit systems.
That's the main purpose: the compiled code shall be executable on any system, just the virtual machine is compiled for a special system architecture.
Yes, bytecode is still very high level. There is no distinction between 32 and 64 bit at that level, just as there is no 32 and 64 bit Java code (.java).
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