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 switch statement does not have a case that matches the value of the expression, and it does not have a default case. What happens?
a) The first case will be executed because there is no default case. b) The last case will be executed because there is no default case. c) The case whose value is closest to the expression will be executed. d) None of the cases will be executed. e) An execution error will occur if there is no matching case and no default case.
Software failure can be caused by a(n) worm, which is a flaw in the program code or design.
Answer the following statement true (T) or false (F)
Case WD 5-1Cory is reviewing a friend's resume. He wants to use Word's comment features to make suggestions. Which button should Cory use to insert a comment?
A. Balloons B. New Comment C. Show Markup D. Reviewing Pane
Megan decides that she also wants to protect her document by restricting who can view and edit it. What are two things she can do to protect her document?
What will be an ideal response?