previous | start | next

Self Check

  1. How do you construct a square with center (100, 100) and side length 20?
  2. What does the following statement print?
    System.out.println(new Rectangle().getWidth());

previous | start | next