Why bytecode cannot be run in Android? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why bytecode cannot be run in Android?

Why bytecode cannot be run in Android?

18th Oct 2018, 8:42 PM
King David
2 Answers
+ 1
That's because Android uses Davik Virtual Machine and not traditional JVM. The class file i.e the byte code for Android is first optimized even more to make it mobile friendly (Which usually has a custom format according to specifications of Dalvik VM),which differs from normal bytecode. Hence direct JAVA bytecode wont't run.
22nd Oct 2018, 12:14 PM
King David
18th Oct 2018, 10:08 PM
Kirk Schafer
Kirk Schafer - avatar