Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help

Java - A Rough Guide

For people who know a bit about languages like C++ and would like to know a little more about Java's features without having to concern themselves with looking at code.

The Product

The Java 2 product comes in 3 main forms.

The Package Tour

There's a lot to explore - over 2300 classes! All classes are in packages (usually easy enough to guess which package a class is in). import java.awt.Graphics means that the Graphics class in the java.awt package is made known to the current class. import java.awt.* imports the whole package but not sub-packages. java.lang is automatically imported.

Not always obvious where things are

There's online documentation - see the API Specification

The Language

It's very Object-Orientated. However

Some Interesting sights

Applets

Applets are runnable via a WWW browser. Thanks to inheritance, applet code can be impressively short. They come with several methods (a selection's below) but often you need only override the paint() method which does the drawing.

Security

How to learn

© Cambridge University Engineering Dept
Information provided by Tim Love (tpl)
Last updated: July 2007