PreLab04 - Name: Edward Leon Section Leader: Knapp Pre-Lab...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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 hasnt 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

Page1 / 2

PreLab04 - Name: Edward Leon Section Leader: Knapp Pre-Lab...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online