This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: negative infinity, or Not-a-Number (NaN). The Selection statements can not be used to test for equality with floating point values; thus, it is necessary to do a relational test using an if statements. For example the test might be if (divisor < .000000001) with floating point values. 22. a. casting error x = (int) "aValue"; These are thrown for errors in arithmetic, casting or conversion. b. if a method has the following signature: public void aMethod ( ) and you try to call it as follows: aMethod(35); Doyle: C#, 2nd edition ISBN 1423901460 Page 1-2 This exception is thrown when the format of an argument does not meet the parameter specifications of the invoked method. c. int [ ] a = new int; System.Console.WriteLine(a); Doyle: C#, 2nd edition ISBN 1423901460 Page 1-3...
View Full Document
- Spring '10