CSC 120 Lecture Notes - Lecture 1: Javac, Gedit, Emacs

145 views3 pages
Verified Note

Document Summary

In simple term, program is list of instructions and the machine runs the instructions. In programming, memory is an important part. bit is the smallest storage unit. You can use plain text editors to run java. However, you need to save the file with (. java) extension. After that, you run the code (javac filename. java) on the terminal. What javac does is, it compiles java source files into bytecode class file(. class). When you enter this code either it puts out a error message(meaning there is error in your code) or it does nothing(meaning there"s no error in your code. ) If there"s error in your code you fix your code and re-enter this code. Until the error message doesn"t come out anymore. And now since it is compiled, in order to run your code, you enter the code (java filename). This is the first code we start with.

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