Why cannot you run standard Java bytecode on Android?

Asked 09-Jan-2018
Viewed 399 times

1

Why cannot you run standard Java bytecode on Android?

1 Answer


0

you cannot run Java bytecode on android because android works on DVM (Dalvik Virtual Machine ) whereas for java bytecode you will need JVM (Java Virtual Machine).

since in Java .java file is compiled by java compiler into class file whereas in android. the class file is compiled into .dex file by the DVM and then that file is converted into.apk file (Android application package).