Comp 268 Java Programming - Unit 2

Flash cards for Athabasca University Comp 268

38 cards   |   Total Attempts: 188
  

Cards In This Set

Front Back
Syntax
Formal rules governing how valid instructions are written in a programming language (exactly what combo of letters, numbers and symbols can be used)
Semantics
Set of rules that determines the meaning of instructions written in a programming language
Metalanguage
Language of a language, it determines the rules used to write the syntax for another language.
Reserved word
Word that has a specific, predefined meaning in Java. IE public class
Identifiers
Words that we define in Java. It is a name associated with a package, class, method or field and used to refer to that element.
Method
A subprogram in Java
Field
A named place in memory that holds data
What are some of the rules about identifiers?
Case-sensitive
Can't start with a digit
No whitespace allowed
Hyphen is a math symbol
Only $ and _ allowed as special symbols
No reserved words
Types of data

Standard
Automatically avialable for use in every Java program
Types of data

Primitive
Any of the built-in types that represent integral, real, character or Boolean values.
Character set (char)
A list of letters, digits and symbols with corresponding binary representation in the computer.
Collating sequence
The ordering of characters with respect to one another within a character set.
Java Object
An entity containing data in fields, with associated operations.
Class
This is the pattern for an object to follow, it contains fields and methods
Method
A subprogram that defines one aspect of the BEHAVIOR of a class.