CS 106A Lecture Notes - Lecture 2: Texas State Highway Loop 1, Operating System

26 views4 pages

Document Summary

Lecture notes data concurrency: standard java, not using acm libraries b. Starts with main method: declare main method. New objectofthistype. start(args): 1st line analysis, static means does not have object associated with it b. i. For example: turning string 12 into an integer, no object involved. Method that exists as part of class but no object associated with it: so for main, no objects exist in the world yet c. i. Static allows method to be called anyways: here there is an array of strings called args e. Args ? e. i. e. ii. e. iii. e. iv. this is way operating system would send commands to your program. New namesurfer. start(args): the runnable interface, collection of methods you need a. i. Program will implement runnable interface: all programs in acm library implement runnable interface b. i. All graphics, console: why do we need to know this, know that it all starts at the main method a. i.

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