CS 0007 Lecture Notes - Lecture 2: Newline, Javac

44 views3 pages
10 Oct 2017
School
Course

Document Summary

Java file names are always composed of a prefix and a suffix. Prefix is usually an english name that is declared inside the program. It is case sensitive if you name a file something, you need to declare it within the program. The name is flexible, but not arbitrary. Grammatical errors result in a compilation error. Comments: comments help you understand what the next series of statements will, and are for the developers own good [ // indicates the comment ] /** is mostly for multiple lines of comments */ Adding spaces between comments/code help the code to be readable. If the the compiling is successful, it will look the same as the original, but will include the suffix . class. Hello. class hello. java (these class files are in java byte code) To start a program, we need to start the java machine (jvm) [invoke jvm by using command java]

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents