ITEC 1620 Lecture 3: ITEC 1620 CHAPTER 3

83 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+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