Android Lec-4
Android Lec-4
What is JDK?
JDK stands for Java Development Kit, It provides the environment
to develop and execute(run) the Java program. JDK is only used by Java
Developers.
JVM Whatever Java program you run using JRE or JDK goes into JVM and
JVM is responsible for executing the java program line by line hence it is
also known as interpreter.
Android SDK consists of the compilers, utilities, build tools and packaging
tools to make and deploy android apps. Android SDK tools are mostly
command-line tools, which can be called from the unix shell or MS-DOS-style
(in Windows) command line and are not graphical.
A figure that illustrates the working of the Dalvik Virtual Machine is given as
follows:
JVM uses java byte code and runs DVM uses its own byte code and runs
.class file having JIT ".dex" file. From android 2.2 SDK
Dalvik has got a JIT
Single instance of JVM is shared with DVM has been designed so that a
multiple applicationss. device can run multiple instances of
VM efficiently. Applications are given
their own instances.
For JVM many Re-tools are available. For DVM very few Re-tools are
available.
It has constant pool for every class. There is constant pool for every
application.