What is Android and why did they create a new virtual machine?

The built-in Android OS is based on the Linux Kernel for basic system services but not the built-in Linux and, therefore, the standard utility libraries for the GNU C example are not supported. The Java environment is used to write an Android application, but Android and not Java. Standard Java libraries, such as since Swing is not supported. A virtual machine known as Dalvik, so when Java class files are generated, it is Dalvik executables known as .dex files. From now on, these files are not considered as java bytecode, but as .dex.

So, I have three questions:

  • Now I know that Android is not, So what is Android?
  • What are basic system services?
  • Why did they choose .dex files in Java bytecode? I mean, why did they take a job to translate or combine .class files into .dex files?
+4
source share
1 answer

What is Android? on the developer's site best describes what Android is.

Why did they choose .dex java bytecode files? I mean, why did they take on the job of translating or combining .class files into .dex files?

This is because they need a more efficient virtual machine. Their virtual machine called DalvikVM has been optimized for low memory requirements.

You can read more about DalvikVM in this Wikipedia entry. Remember to check the external link section on this page.

+5
source

Source: https://habr.com/ru/post/1341199/


All Articles