What steps must the programmer take to create an executable Java program?
What will be an ideal response?
First, the programmer must create the source code. The programmer creates a Java class that is contained in a file with the same name as the class. The source code file ends with the .java extension. Next, the programmer uses a tool called a compiler to translate the source code into Java byte-code. If the source code is syntactically correct, a file containing the byte-code is created. This file has the same name as the source code file with one exception, the byte-code file ends in the .class extension.
Once the .class is generated, it may be executed on any computer that has the Java Virtual Machine (JVM) installed on it.
You might also like to view...
A(n) ________ port looks like a slightly larger phone jack
Fill in the blank(s) with correct word
What is the value of the following arithmetic expression if the variables have these values: p
s x 5 20 6 p + 3 * x – s a) -37 b) 3 c) 28 d) 59