Sams Teach Yourself C in 21 Days

(singke) #1
Java Language Fundamentals 721

BD4


Quiz ..............................................................................................................


  1. What Java primitive data type can hold the largest range of integer values?

  2. Does Java support functions?

  3. What Java construct would you use to execute a block of statements repeatedly as
    long as a certain condition is true?

  4. What does the importstatement do?

  5. How do you create a comment in Java?

  6. What’s wrong with this code?
    int count;
    Count = 0;

  7. What data types can be used in Java arrays?


Exercise ........................................................................................................


  1. Install and work with a java compiler. Compile and execute the listings presented
    in today’s lessons.


39 448201x-Bonus4 8/13/02 11:19 AM Page 721

Free download pdf