This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Name: Edward Leon Section Leader: Knapp Pre-Lab 04 – CSC 127A – Spring 2008 (10 points) 1. What is null? When do you set objects equal to null? Null is the term for when an object reference is first declared, but hasn’t been assigned to an object. When an object is set to null, an error appears named “exception.” 2. Find a static method in the API and describe why it is static and what it is used for. Static data belongs to a class, rather than a particular object. We use the static method to define constants for commonly used values. 3. Describe the differences between double and Double. Double converts a String to a Double object and returns that object whereas a double converts a String to a double and returns the value. 4. What is the difference between sequential execution and selection ? Selection allows the programmer to test for certain conditions and to select instructions to execute based on results of the test. Sequential execution makes the program use the information that is based on results of the test....
View Full Document
This lab report was uploaded on 04/18/2008 for the course CSC 127a taught by Professor Suzanne during the Spring '07 term at Arizona.
- Spring '07