GRADE 12
JAVA MATERIAL FOR GRADE 12 STUDENTS
Gr 12 – Threads in Java
Understanding multithreading is difficult if you have never seen Java code with multiple threads. Threads have to be coded by the developer and is not taught at high school level. These two programs also use inheritance. Using Gogga is a useful way to demonstrate...
Gr11 – 12 Coding Dictionary
Coding dictionary for grade 11 and 12 containing 70 important coding terms
Gr 12 – Trace tables
Using a trace table to diagnose a problem with a pseudocode algorithm
Gr 12 – Search Array
In SQL there is an IN statement that looks for a value within a given list. Example. SELECT town FROM tblTowns WHERE town IN ('Johannesburg', 'Pretoria', 'Cape Town'); How does one code the same thing in Java when using a regular array? Here is a two-class OOP...
Gr11 12 – Data Validation
Data Validation Overview. V1 Validation first, followed by verification. Validation – does the data match the template? Example: The date template could be “yyyy-MM-dd” Verification – the data does match the template but is it valid? Example: “2026-14-13” matches the...
Gr11 12 – SQL database
It is easy to think that a database has some sort of logic, intelligence and self-awareness. It is does not. A database is like a suitcase of clothes. Some items "go with" other items but the clothes themselves do not understand their relationship with one another....
Gr12 – SQL. Random numbers
Random numbers with predictable starting and ending values eg 1 - 10, 1 - 100, 1 -1000In SQL we use the RND( ) function. Inside the round brackets goes the seed value (an integer value) Generating a random number requires a few steps. A) Generating a random number...
Gr 12 – SQL Adv
In grade 12 you need to be familiar with composite SQL statements (embedded / nested SQL statements). This means that two statements are joined together - the result set on one query is passed to the other. Therefore there are two SELECT / FROM statements joined...
Gr 12 – OOP Theory
In Java OOP we need to understand the terminology and the design concepts behind OOP. Here are two handouts, quite similar but one is a teaching document and the other is a study document. Click here for OOP theory handout Click here for OOP theory study notes One of...
Gr 12 – Inheritance Composite
In Java there is a swing away from inheritance, and it is possible that your practical exam papers may not have inheritance. Yes, there will still be four classes i.e. the UI class, the manager class and two template classes from which to create objects BUT the one...
IEB Information Technology Tutor (Matric) South Africa