COMPSCI 61B Lecture Notes - Lecture 2: Instance Variable, Javac

16 views4 pages

Document Summary

Finish and submit lab 1 and 1b, if you haven"t already (due january 27, 2017) Start working on project 0 before next lecture. Compiles . java le and creates a new . class le java helloworld. The standard tools for executing java programs use a two step process. However, this isn"t the only way to run java code. class le has been type checked, and distributed code is safer. class les are simpler" for machine to execute and distributed code is faster. Minor bene t: protects your intellectual property, since there"s no need to give out the source code. To run a class, we must de ne a main method. Not all classes have a main method though. Classes can contain not just methods, but also data. Constructors can be created to ll in various datapoints for an object instantiated from a class. Instance variable: variable that tracks a property of a speci c instance of a certain class.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents