posted Nov 26, 2008 2:22 AM by Haoran Zhang
[
updated Nov 26, 2008 6:26 AM
]
Learning outcomes:
- Understand the concept of algorithms in computer programming.
- Learn how to use linear search and binary search, together with their pros and cons.
- Learn how to use selection sort, insertion sort, and merge sort, together with their pros and cons.
- Know how to search or sort using methods in java.util.Arrays. (See the Java API.)
|
posted Nov 19, 2008 3:05 AM by Haoran Zhang
Learning outcomes:- Know why to use exception handling in Java.
- Learn some of the commonly seen errors and exceptions.
- Learn the syntax of try-catch-finally blocks.
|
posted Nov 12, 2008 12:41 AM by Haoran Zhang
[
updated Nov 12, 2008 12:47 AM
]
Learning outcomes:- Review inheritance in Java.
- Understand the concepts and techniques of polymorphism.
- Understand the concepts and techniques of interface.
|
posted Nov 4, 2008 11:44 PM by Haoran Zhang
Learning outcomes:- Learn the idea and concepts of inheritance, and know why it is good.
- Learn the use of use of the keyword protected and its potential problems.
- Be able to declare inheritance relationship by the keyword extends.
- Call the constructor of the superclass using super, or the methods of the superclass using super.methodName(...).
- Realize that every class in Java directly or indirectly inherits from the Object class.
- Learn the difference between deep copy and shallow copy.
|
posted Oct 28, 2008 10:45 PM by Haoran Zhang
Learning outcomes:- Understand data encapsulation and data hiding (e.g. public, protected and private; set and get methods)
- Learn to use the keyword "this" to refer to the members of the current object.
- Distinguish between constructors and default constructors.
- Learn how to overload constructors.
- Learn how to use static variables and methods, and to import static members of a class.
- Understand the Garbage Collection mechanism in Java, its advantages and disadvantages.
- Learn how to declare a constant using the keyword "final".
|
posted Oct 28, 2008 9:33 PM by Haoran Zhang
Learning outcomes:- Review the concept of OOP and relevant problem-solving techniques by trying the exercise problems in Chapter 6.
- Understand the concepts of pass-by-reference and pass-by-value.
- Learn how to use multidimensional arrays.
- Know how and why to specify a variable-length argument list in Java methods.
- Learn how to pass command-line arguments into a Java program.
|
posted Oct 8, 2008 5:49 PM by Haoran Zhang
[
updated Oct 8, 2008 5:58 PM
]
Learning outcomes:
Chapter 6: - Understand the concept of scope.
- Overload methods.
Chapter 7: - Know the advantages of using arrays (through the MarkSix example).
- Learn the various ways of initializing an array.
- Use array and the random number generator to write a simple application.
- Learn the technique of shuffling the items in an array.
Sections 7.6-7.12 are not covered in the test. We will come back to them after the test. |
posted Sep 30, 2008 8:39 PM by Haoran Zhang
[
updated Sep 30, 2008 8:47 PM
]
Learning outcomes:- Recognize the importance of using program modules in programming.
- Understand static methods and static fields, using the class Math as an example.
- Know how to declare methods with multiple parameters.
- Understand and make good use of argument promotion and casting.
- Know about the Java API Packages and develop the habit to read Java API documentations.
- Know how to use a random number generator.
Sections 6.10-6.12 are to be covered in class 6. |
posted Sep 24, 2008 5:42 PM by Haoran Zhang
Learning outcomes:- Know how to write a loop using while, do-while, and for respectively. Also understand their difference.
- Use methods from the Java Math class.
- Use switch for selection.
- Use break and continue to alter the program flow.
- Use logical operators in the program.
|
posted Sep 16, 2008 9:03 PM by Haoran Zhang
[
updated Sep 16, 2008 9:13 PM
]
Learning outcomes:- Understand the concept of pseudo-code.
- Understand and use the following control statements (including nested control statements):
- if and if...else
- while loop
- (We will come to the do...while loop and for loop in the next chapter.)
- Use compound assignment operators (e.g. +=, -=, etc.)
- Use increment and decrement operators (e.g. ++, --, etc.)
|
|