SEHH2242 Tutorial 02
SEHH2242 Tutorial 02
State whether each of the following is true or false. If false, explain why.
1. By convention, method names begin with an uppercase first letter and all
subsequent words in the name begin with a capital first letter.
3. Variables or methods declared with access modifier private are accessible only to
methods of the class in which they are declared.
7. Any class that contains public static void main( String args[] ) can be used
to execute an application.
8. The number of arguments in the method call must match the number of
parameters in the method declaration’s parameter list.
1
Task 2 (UML Class diagram)
With the following Java source code skeleton, draw the UML class diagram for
representing the class GradeBook:
// GradeBook.java
// GradeBook class with a constructor to initialize the course name.