Don't understand at compile time and at execution time

HelloWhat does at compile/execution time exactly mean?What kind of processes are called at compile time (respectively at execution time)?If anyone could give me unambigous information about that.thanks
[236 byte] By [nextOnea] at [2007-10-1 0:45:38]
# 1

> Hello

>

> What does at compile/execution time exactly mean?

Compile time is when you compile, e.g. running javac to build your classes

Execution time is when you run the compiled application (java or javaw).

> What kind of processes are called at compile time

> (respectively at execution time)?

Compile time, none.

Execution time, whatever your application does.

At least not by the definition of "processes" that I'm thinking of.

bsampieria at 2007-7-8 0:59:12 > top of Java-index,Security,Event Handling...
# 2

> What does at compile/execution time exactly mean?

>

> What kind of processes are called at compile time

> (respectively at execution time)?

Execution time is also called run-time. This is when the program has been started. Compile-time is before that. The program hasn't yet been started. Compile-time isn't such a good term anymore because Java programs are compiled also while running, that is at run-time.

For Java the processes are these:

Before run-time: The Java source code is compiled to an intermediate form called bytecode.

At run-time: The JVM runs the bytecode. Earlier this was by interpretation but today the bytecode is first compiled to machine code which is run directly by the native processor.

Another way to express this is to say that a Java program is first statically compiled to bytecode and then dynamically compiled to native code at run-time. This is the same technology Microsoft is using for its .NET environment. They call it "managed code". The main advantage is that the compilation process can involve information of the actual running characteristics of the program.

uj_a at 2007-7-8 0:59:12 > top of Java-index,Security,Event Handling...
# 3

hi,

i think this will help u ...

the process Flow of executing a java program..

Step 1:

Editing.... (Typing the Program)MyProgram.java

Step 2:

Compling --

Converting intoMyProgram.class (Byte Codes)

check the program is a valid java program.

byjavac MyProgram.java

Step 3:

Executing (Runtime) --

Loading the Byte Codes into MainMemory....

Verifying the Byte codes are valid

Exectuting the Byte Codes...

Thows exceptions if it has any runtime errors....

by java MyProgram

-jaban

gw@balaa at 2007-7-8 0:59:12 > top of Java-index,Security,Event Handling...