CS 0401 Lecture Notes - Lecture 6: English Alphabet, Bracket, Memory Address

46 views3 pages
24 Jan 2017
School
Course
Professor

Document Summary

1/24/17 lecture 6 review of basics of java and lab 2. Allows you to write large blocks of code and then reuse it later on in the program. When you call the program in terminal/command prompt you"re calling the main method. Using the call meth1(): this will call method1 within the main method and then will return a value to the main method and move onto the next method/statement. Using the closed curly brace to close: implicit call to return. When main is done executing (the closing curly brace/system. exit(0);) the program is done. Will be replaced with a reference (the memory address where the thing is stored) because you"re assigning it into a reference variable (message: java just wants to restrict the copying and moving to fixed sized small things. If you want to be passing around (say a string) you will just end up passing around it"s reference variable (32-bit) Incoming parameters should be thought of as local variables.

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

Related Questions