1 java : fundamentals. 2 3 4 5 6 7 8 9 10

Post on 13-Jan-2016

218 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

Java: Fundamentals

2

3

4

5

6

7

8

9

10

11

12

13

14

وابستگی کمپایلرها به پلتفرم ها

15

ایده ای برای استقالل از پلتفرم

16

JVMمعرفی

17

فرایند اجرای کد جاوا

18

فرایند اجرای کد جاوا )ادامه(

19

فرایند اجرای کد جاوا )ادامه(

20

21

22

23

JVM و JRE،JDK Java Development Kit (JDK): This includes

ALL the basic Java framework packages, a compiler (javac), JRE, a JVM, debugger etc.

in short all you need to develop, debug, compile and run our Java program.

Java Runtime Environment (JRE): This is a subset of the JDK. It does not include a

debugger, compiler, and framework classes. This includes the bare minimum that a

computer needs in order to run a .class file.

24

Java Virtual Machine (JVM): JVM is a part of JRE. The .class file is passed

over to JVM which then runs the program. The JRE ensures that the code does not

violate any of the security restrictions. Remember that the byte-code (.class file) is

not directly run on the host machine; it needs to be converted to the host machine's

language. This conversion is done by the JVM. While converting the JVM ensures the

security and may also optimize the code.

26

27

28

?

top related