Java Reference
In-Depth Information
What statement should replace
// answer goes here
so that the
result
variable equals
312.0?
a.
float calculateResult(int c) {
b.
float calculateResult(int a, int b) {
c.
float calculateResult(int a, int b, int c) {
d.
float calculateResult() {
The answer is available on the topic's website at
http://www.java21days.com.
Visit the
Day 5 page and click the Certification Practice link.
To extend your knowledge of the subjects covered today, try the following exercises:
1.
Modify the
VolcanoRobot
project from Day 1 so that it includes constructor meth-
ods.
2.
Create a class for four-dimensional points called
FourDPoint
that is a subclass of
Point
from the
java.awt
package.
Where applicable, exercise solutions are offered on the topic's website at
http://www.