Creating Your First Application
Your first application,
HelloWorld
, will simply display the greeting "Hello world!". To create this program, you will: - Create a source file
A source file contains code, written in the Java programming language, that you and other programmers can understand. You can use any text editor to create and edit source files. - Compile the source file into a .class file
The Java programming language compiler (javac
) takes your source file and translates its text into instructions that the Java virtual machine can understand. The instructions contained within this file are known as bytecodes. - Run the program
The Java application launcher tool (java
) uses the Java virtual machine to run your application.
0 comments:
Post a Comment