Sister school to teach Java (e): What happened in Java programs compile and run time

Hello everyone, I am silent king. This article through dialogue and Sanmei me to talk about "what happened in Java programs compile and run the."

Never seen such a funny title, right? "Language does not startle," Yes, the title of this article is so cool, I can not accept students do not read the points come in the so-called curiosity killed the cat; able to accept students I can only say you earn you not only feel the thinking in the process of reading pleasure, really can learn to knowledge. Here me to explain the background of the story right.

I have a nice flower sister (pictured above), what she called what? I think the intelligent reader friends can guess: silence the king three, yes, three-year parties VI. Her parents are considering to learn from me, to be a eight children of Java programmers. I want to resist the beginning, because programmers it is easy to hair loss industry. But family life can not do anything ah, its resistance, it is better to do more positive things to write interesting articles to teach my sister how to master Java as a programming language faster. After all, the programmer so good on high-paying (all take life for the ah).

(Foreshadowing the end, the beginning of the text)

"Brother, looked after on a Hello World program, I was curious how it prints out 'Hello World' on the screen it?"

"Sanmei ah, 'Hello World' This code has been able to work, can be divided into two steps: Compile and run the following Club Road brother said detail."

01, what happened compile time

Now, we have a file called Cmower.java, its content is as follows:

package main.java.com

Guess you like

Origin blog.csdn.net/qing_gee/article/details/104058207