Java Kickstart Workshop for NUS School of Computing Students, starting from Jan 2015.
For Java 7
- Introduction
- Hello World!
- Naming of Source Files
- Basic Shell Commands for Compilation
- Recap of Procedural Programming (more time will be devoted to this for CS1101S/ CS1010S students; relevant subtopics marked with *)
- Data Types*
- Abstraction using Functions
- Conditionals
- Loops*
- Arrays
- Abstract Data Types & OOP
- Illustration with a simple
Box
class containing length, breadth, height attributes - Distinction between object pass-by-reference and pass-by-value semantics
- Illustration of constructor
- Brief mention of object references
- Introduction to methods using a
getVolume()
method for theBox
class - Access modifiers, with the attributes made private and a
setLBH()
method being implemented with sanity checks - Introduction to inheritance with a
ColouredBox
class
- Illustration with a simple
- Generics
- Comparison of type parameterisation to value parameterisation performed in methods
- Interfaces
- Illustration using
Comparable<T>
- Illustration using
- Java Class Library (if time permits)
- Basic standard file I/O