Applications, Applets, Java API - Quiz Explanation

The answers you selected are indicated below, along with text that explains the correct answers.
 
1. A Java program that executes within Web pages is known as:
Please select the best answer.
  A. An application
  B. An applet
  C. A script
  The correct answer is B.
A Java program that executes within Web pages is known as an applet. Java applications execute stand-alone and cannot be embedded in Web pages. You can not develop scripts using Java; a scripting language such as VBScript or JavaScript must be used to create scripts.


2. A group of reusable Java code that performs useful operations such as accessing networks and compressing files is known as:
Please select the best answer.
  A. A script
  B. An application
  C. A class library
  The correct answer is C.
A group of reusable Java code that performs useful operations such as accessing networks and compressing files is known as a class library. There is no such thing as a script developed in Java. Java application code typically is not designed to be reusable in other applications.

3. To help distinguish them from user-created packages, most of the standard Java API package names begin with:
Please select the best answer.
  A. package.
  B. com.sun.java.
  C. java.
  The correct answer is C.
To help distinguish them from user-created packages, most of the standard Java API package names begin with java. None of the standard Java API package names begin with package. Although some of the standard Java API package names begin with com.sun.java., the vast majority of the names begin with java.