M254

Java Everywhere - Units 1 to 3.

You are here:   Catzwhiskerz Home | Open Uni | Computing | M254 | Units 1-3

Unit 1 - Java Everywhere.

If you have studied M206 Object-Oriented Computing, or something related, then Unit 1 will be mainly revision for you. All you need to do is get familiar with Java syntax. Unit 1 is a very gentle and clear introduction to the language, and has self-assessment questions as you work through it. The main subject areas covered are:

  • Background to Java - versions, editions.
  • Getting Java running - how the compiler works.
  • Applications and Applets - running them on JBuilder.
  • Objects - using robot world as an example.
  • State changes.
  • Classes in Java. Methods. Constructors.
  • Inheritance.



Unit 2 - Java in the Small.

More about the syntax of Java. The main areas covered are:

  • Data types - primitive data types and casting.
  • Statements, scope and operators.
  • Strings.
  • Conditional processing - booleans, if...else, switch...case statements.
  • Arrays.
  • Repetitive processing - while and for statements..
  • Developing some methods.



TMA 01.

Can be done after you have completed Units 1 and 2. As it only counts for 10% of the marks it consists of just one question, so not a great deal of work involved. You have to develop 2 classes, from skeleton classes provided. Filling in the gaps, really.


Unit 3 - Java in the Large.

Covers all the basics about creating objects from class definitions, from an object-oriented perspective.
  • Objects and Classes.
  • Information hiding and cohesion.
  • Getter and setter methods.
  • Access modifiers.
  • Static variables and static methods.
  • Packages.
  • Constructors.
  • More on inheritance.
  • The class hierarchy.



TMA 02.

This tests your knowledge of Units 1 to 3, and consists of 2 rather long questions. I will report back about this one once I've done it. As of writing this I am not quite finished Unit 3.

TOP