ITEC 1620 Lecture 3: ITEC 1620 CHAPTER 3

84 views1 pages

Document Summary

Creating objects: a variable olds either a primitive value or reference to an object, creating an object is called instantiation. , class name can be used as a type to declare an object reference variable. Invoking method: a method may return a value which can then be used in an assignment or expression. Class libraries: a class library is a collection of classes that we can use when developing programs. Aliases: the same object can have more than one name, and those names become aliases of each other. The strin class: because strings are so common, we don"t have to use the new operator to create a string object, once a string has been made, both its value and its length cannot be changed. The random class: the random class is part of java. lang package, it provides pseudorandom numbers, ramdom()- constructor: creates a pseudorandom number.

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