1.

What Is The File Type?

Answer»
  • When you create JAVA source-code files that contain classes and methods, you need to be aware of the Java file-naming convention. Each Java source-code file must END with the Java extension. In addition, the file's name must match the name of the public class the file DEFINES. For example, if your source-code file creates a class named MorphaMatic, your source-code file must use the name MorphaMatic.java. As you can see, the LETTERS of the source-code file name must match the class name exactly, INCLUDING the use of upper and lowercase letters.
  • The HTML file that you use to run the applet can have any name. As a rule, however, you should use the standard extension for your system, typically .html or .htm. Also, to help organize your files, you may want to use a name similar to that of your applet for the HTML file name, such as MorphaMatic. html.
  • Finally, the bytecode file the Java compiler creates will have the .class extension. In this case, the bytecode file will have the name MorphaMatic.class. As discussed, the .class file is the file the Web server downloads to your browser which, in turn, interprets and executes the files's contents.



Discussion

No Comment Found