Java-6 Answers

Java-6 Answers - 4 Algorithm Workbench 2 a The value is 100...

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

View Full Document Right Arrow Icon
Kenneth O’Malley Starting Out with Java: From Control Structures through Objects Java 6 HW 3/26/2010 Multiple Choice Answers 1. A 2. B 3. D 4. C 5. B 6. A 7. D 8. B 9. B 10. A 11. C 12. B 13. C 14. D 15. T 16. T 17. F 18. F 19. T Find the Error 1. The variables x and y can’t be accessed with-in the MyClass method because they are private 2. Void methods may not return a value. 3. The object shouldn’t have the same name.
Background image of page 1

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

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 4. Algorithm Workbench 2. a. The value is 100 b. The value is 6 Kenneth O’Malley Starting Out with Java: From Control Structures through Objects Java 6 HW 3/26/2010 c. Error – Short will not convert to int d. The value is 1 e. Error – will not handle character f. The value is 8 3. a = 3, b = 2, c = 1...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

Java-6 Answers - 4 Algorithm Workbench 2 a The value is 100...

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