Posts

Showing posts with the label CPU

How many CPU architectures (platforms) can Java run?

Image
Java is famous for its cross-platform feature, and declared as Write once, run anywhere (WORE). Well the question is, how many platforms Java can run? Code always contains the best answer, let's investigate the code of Java Virtual Machine (JVM) for this. The Architecture ( source code ) class in the jdk.internal.vm.ci.jmod module indicates the CPU architectures Java Virtual Machine can run on:   UML Hierarchy Diagram for Java class Architecture We can found Java can execute on the following three (3) CPU architectures / platforms: AArch64 ( source code ): ARM CPU, 64 bit, which is mostly used in Mobile devices, like Android phone, Android PAD, Apple iPhone, etc AMD64 ( source code ): x86 CPU, 64 bit, which is used by most laptop and desktop computers, including Acer, Apple, Asus, Dell, Hewlett-Packard (HP), IBM, Lenovo, Samsung, Toshiba, etc SPARC ( source code ): SPARC CPU, originally designed by Sun Microsystems , which is used by powerful servers ...