Clicker question: hex
=====================

``` {.java}
int x = 0x12;
System.out.println(x);
```

What is the output?

a.  010
b.  12
c.  *18*
d.  0x12
e.  0b10010

Clicker question: casting?
==========================

``` {.java}
int x = 5;
int y = 2;
System.out.println(x / y);
```

What is the output?

a.  `Exception in thread "main"`
    `java.lang.ArithmeticException: / by zero`
b.  5
c.  2.5
d.  *2*
e.  0

Clicker question: aliasing
==========================

``` {.java}
Dog cardie = new Dog();
Dog duncan = cardie;
cardie.setAge(6)
duncan.setAge(4)
int sum = cardie.getAge() + duncan.getAge();
```

What is the value of sum?

a.  6
b.  *8*
c.  10
d.  12
e.  `cardiecardie`

Clicker question: casting
=========================

``` {.java}
public class Phone {
  void answerCall() {
    System.out.println("Hello");
  }
}
public class CellPhone extends Phone {
  void answerCall() {
    System.out.println("Can you hear me now?")
  }
}
...
Phone myPhone = new CellPhone();
myPhone.answerCall();
```

What is the output? →

Clicker question: casting
=========================

a.  This code won't compile.
b.  "Hello"
c.  *"Can you hear me now?"*
d.  A `ClassCastException` at runtime.

