CSC 120 Lecture Notes - Lecture 1: Java Bytecode, Java Virtual Machine, Stack Exchange

21 views10 pages
champagnegnat971 and 18 others unlocked
CSC 120 Full Course Notes
26
CSC 120 Full Course Notes
Verified Note
26 documents

Document Summary

Interactive development environments combine the first steps into one the bytecode is generated as the source is being typed. In a shell environment (like this csc120), the second step is accomplished by executing a line command javac (compiles: there are different text editors you can use like vim, sublime, gedit, emacs. Hello, world: here % is the shell"s output to i(cid:374)di(cid:272)ate the start of a (cid:374)e(cid:449) (cid:272)o(cid:373)(cid:373)a(cid:374)d, (cid:272)alled prompt. : specifies a sequence characters, called a string literal. If runs without errors, it was successful in compiling. Syntax errors: errors that are found where the code does not conform to the required format, the execution of compilation (javac) informs of the error, for example: Spelling errors: use of reserved words, unbalanced braces, missing semicolons, missing magic word static Solution: attach a backslash in front of the second to inform java that it is not the double quote that is to surround the characters to be printed as in.

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