Java SE 7 Programmer (1Z0-803)
© examsiri.com
Question : 5 of 7
Marks:
+1,
-0
Given:
interface Rideable { String getGait(); }
public class Camel implements Rideable {
   int weight = 2;
   String getGait() { return " mph, lope"; }
  void go(int speed) {
    ++speed; weight++;
    int walkrate = speed * weight;
    System.out.print(walkrate + getGait());
  }
  public static void main(String[] args) {
    new Camel().go(8);
  }
  }What is the result?
Go to Question: