| ★ wanayoo — archive 1999 http://java.sun.com/docs/books/tutorial/java/nutsandbolts/QandE/questions_expressions.html | Nouvelle recherche | Portail wanayoo |
|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
- What are the data types of the following expressions, assuming that
i's type isint?i > 0 i = 0 i++ (float)i i == 0 "aString" + i- Consider the following expression:
i--%5>0
- What is the result of the expression, assuming that the value of
iis initially 10?- Modify the expression so that it has the same result but is easier for programmers to read.
Check your answers.
- Write a program to confirm your answers to Questions 2a and 2b.
|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |