Grade 11 Java Revision Lesson Plan (Based on Grade 10 Concepts)
Duration: 100 minutes
Topic: Java Basics - Deep Revision
Focus Areas: Data Types, Variables, Operators, Control Structures, Loops, Math Class, Type
Casting
1. Introduction (10 mins)
- Ask learners: "What are some Java basics you remember from Grade 10?"
- Objective: Today we revise Java basics not just to recall, but to understand how and why they
work.
2. Teaching & Practice (70 mins)
A. Data Types & Variables (10 mins)
Code:
int age = 17;
double average = 74.5;
char grade = 'A';
boolean pass = true;
Explain:
- Each line stores a specific data type.
- Use variables to store and reuse values.
Activity:
- Learners write Java code storing their age, average, grade, and pass status.
B. Operators (15 mins)
Code:
int x = 8, y = 3;
[Link](x + y); // 11
[Link](x > y); // true
[Link](x != y); // true
[Link](x > 5 && y < 4); // true
Explain:
- Arithmetic: + - * / %
- Relational: == != > < >= <=
- Logical: && || !
Activity:
- Write a program to check if a learner passed (above 50) and if they passed with distinction (above
80).
C. Control Structures (10 mins)
Code:
if (mark >= 80) {
[Link]("Distinction");
} else if (mark >= 50) {
[Link]("Pass");
} else {
[Link]("Fail");
}
Explain:
- Java checks top-down.
- Only one condition executes.
Activity:
- Write an if-else structure to classify ages: Child (<13), Teen (13-19), Adult (20+).
D. Loops (15 mins)
Code Examples:
1. For loop:
for (int i = 1; i <= 5; i++) { [Link](i); }
2. While loop:
int i = 1; while (i <= 5) { [Link](i); i++; }
3. Do-while loop:
int i = 1; do { [Link](i); i++; } while (i <= 5);
Explain:
- Use loops for repetition.
- For: known count; While: condition-first; Do-While: run at least once.
Activity:
- Print all even numbers from 1 to 10 using a loop.
E. Math Class (10 mins)
Code:
[Link](2, 3); // 8.0
[Link](25); // 5.0
[Link](4.6); // 5
Explain:
- Use Math for calculations: power, root, rounding, max, min.
Activity:
- Use [Link] to find the larger of 12 and 21.
F. Type Casting (10 mins)
Code:
1. Widening:
int x = 5; double y = x;
2. Narrowing:
double pi = 3.14; int approx = (int)pi;
Explain:
- Widening is automatic.
- Narrowing may lose data (e.g., decimal dropped).
Activity:
- Write code to cast a double to int and display both.
3. Consolidation (10 mins)
- Discuss what learners misunderstood before.
- Recap with real-world examples and learner questions.
4. Homework (10 mins)
Task:
- Java program that takes in a mark, checks validity (0-100), and classifies it using if-else and
[Link]().