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
i
is 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 |
Copyright 1995-2002 Sun Microsystems, Inc. All rights reserved.