Java For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming

Self-Test Questions

1. 

What is the purpose of the PATH environment variable in the Windows and UNIX operating system environments?

2. 

What is the purpose of the CLASSPATH environment variable in the Windows and UNIX operating system environments?

3. 

List and describe the steps of the Java program-creation process.

4. 

What are the primary components of an IDE? What benefits would the use of an IDE offer a programmer?

5. 

What is the purpose and use of the javac command?

6. 

What is the purpose and use of the java command?

7. 

What is the purpose and use of the javadoc command?

8. 

List and describe the steps required to create an executable .jar file.

9. 

(True/False) The javac command can compile more than one source file at a time.

10. 

How do you execute an executable .jar file?

Answers

1. 

- Sets the location of executable files

2. 

- Sets the location of Java class files (.class)

3. 

- Programmer creates one or more source code file(s); Programmer uses javac command to create .class files; Programmer runs main application class file using java command.

4. 

- Text editor, project manager, debugger, and perhaps other third-party tools plug-ins. IDEs can speed software development.

5. 

- Used to compile Java source files

6. 

- Used to run Java application files

7. 

- Used to create professional-looking, HTML-formatted API documentation

8. 

- Create Java application; package with jar command and include a manifest file that names the main application class

9. 

- True

10. 

- java -jar jarfilename.jar

Категории