Create Software Components 

Using Java Level 2

 

 

Course Info

Scheme

Resources

Tutorials

Java Demos

Utilities

Links


 

    Activity 4

Data Types, Variables, Constants


Lesson Plan

1

Lecture:  Data Types, Literals & Constants 

30 minutes

2

Activity 4.1: Data Types, Literals & Constants Tutorial

60 minutes

Break

15 minutes

3

Lecture:  Variables: Declaration & Scope

30 minutes

4

Activity 4.2: Data Types, Literals & Constants Tutorial

30 minutes

5

Activity 4.3: Quiz

15 minutes

Homework: Variables, Constants & Scope Exercise


Lecture: Data Types, Literals & Constants

A look at data types.  Using literals in your code.  Declaring and using constant data types.

 

Activity 4.1

Work through the Data Types, Variables & Constants tutorial and become familiar with using literals and constants.

 

Lecture: Variables: Declaration & Scope

What is a variable, how do you declare and initialise them.  Variable naming rules.  What is a class variable, an instance variable and a local variable.  A look at the scope and lifetime of a variable.

 

Activity 4.2

Carry on working through the Data Types, Variables & Constants tutorial to familiarize yourself with declaring, initialising and using variables as well as understanding variable scope and lifetime.

 

Activity 4.3 - Quiz

Log into Blackboard and navigate to Quiz 4.  Answer the questions and record your score below.

Quiz Score  __________________

Homework

Work through the Variables, Constants & Scope  exercise designed to familiarize you with a variety of data types, constants, variable declaration and the scope & lifetime of a variable.

 


That's it for this activity!

 

 

  Site Home 

Java Home   

  Forum  

Course Info

Welcome

Overview

Assessment

Qualification

Scheme of Work

Assignments

Resources

Information

Blackboard

Learning Center

Web Materials

Reading

Java Demos

Utilities

Links

Lecture Materials

Tutorials & Notes

Exercises

Activities

Quizzes

 

Site Home

Top

Unit Home

ADR 2002