CMPSC 56 Chapter Notes - Chapter 3-4: Reserved Word, Dollar Sign, Mutator Method

30 views2 pages
29 Sep 2017
School
Course
Professor

Document Summary

Simple bit patterns that represent the actual value i. e. integers, booleans, floating point numbers. Holds bits that represent a way to access an object on the heap. Must start with letter, underscore, or dollar sign. Can use numbers, but not as the first character. Arrays are objects in which every element in an array is a variable. Arrays are always objects, whether they"re declared to hold primitives or object references. Reference variables that point to the objects might live on the stack. Reference variable has value of null when it"s not referencing any object. You don"t know how big a reference variable is. All references for a given jvm are the same size regardless of the objects they reference. When you have an array of object references, creating the array and creating the objects that the elements of the array point to are two separate steps. A method takes a parameter (aka formal parameter)

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