Show Menu
Cheatography

COMP161 - Final Practical Test Cheat Sheet (DRAFT) by

A cheat sheet for the COMP161 Java Programming final practical test at The University of Otago.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Java Basics

Java Interp­reter
Java Libraries
Translates bytecode to machine code.
Contains packages, which contain classes, which contain methods.
Executes .class files (compiled .java files).
Common packages are java.util, java.io, etc.

Java Naming Conven­tions

Type
Example
Class
MyClass
Method
myMethod()
Variable
myVariable
Constant
MAX_COUNT
Package
com.ex­ample or java.util