Homework Assignment # 1

 Due Monday, February 9, 2004

The following questions are to be submitted as hard copy at the BEGINNING OF CLASS.  You will not be allowed time to print the assignment during class.

Answer the following questions:

 1. What is the first method to be executed when a Java program starts?

 2. What does the modifier static mean in the definition line of a method?

 3. What is the difference between a class and a method?

 4. What does ReadNum.readInt() mean?

 5. Given that int number=60; answer the folllowing: (Use the initial value of number for each answer)  

number++;        ___________ number+=12; ___________
number/=15; ___________ number-=3;  ___________
number--; ___________ number*=4;   ___________

 

               

 

Hosted by www.Geocities.ws

1