COSC 1P02 Lecture Notes - Lecture 2: Type Signature, James Gosling, Local Variable

116 views3 pages

Document Summary

Was originally meant for embedded systems (set top boxes etc. ) Java is platform independent as it does not directly compile its source code into machine code. The compiler complies the program into bytecode (instead of machine language), which is then linked with the necessary library bytecode and then executed by the java interpreter written for the destination platform: A definition (template) of a kind of an object. Defines the methods that the objects can perform along with its characteristics. In java, a program is a collection of classes. Function methods (functions) are functions (for example in math) that are used to compute a value and return it (calcsidelength) Another common use of function methods is as accessor methods for classes. Procedure methods are methods that perform a task when executed (drawsquare). They are of type void as they don"t return anything. A method is always executed by an object. Implicitly referring to object (when object calls local methods)

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