CPSC 425 Spring 2004
HW 1
- Webber 2.1(h),(j),(k)
- Webber 3.1
- Webber 3.3(b),(c),(d)
- Webber 3.4(b), (c)
Go to the online Java Language Specification at
http://java.sun.com/docs/books/jls/second_edition/html/j.title.doc.html,
and use this document to answer the following questions.
Answer each with an English explanation, but
refer to the grammar productions that support your answers.
- What is the structure of a Java identifier?
- How does Java deal with the "dangling else" problem?
- Which of the following statements is legal in Java?
- x;
- 5;
- x=z=y;
- Which has higher precedence, && or ||?