• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/27

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

27 Cards in this Set

  • Front
  • Back

Rules for combining words into statements.

Syntax

Rules for interpreting the meaning of statements.

Grammar

The "blueprint" containing everything that a program must contain in order for it to function properly

Classes

Specify actions performed during a program's execution.

Statements

Describes what a statement is doing.

Comments

Used to label variables, statements, classes, and other parts of a program.

Identifiers

(T/F) Identifiers are case-sensitive.

True

(T/F) May contain letters, digits, underscore and the dollar sign, and may start with digits.

False

(T/F) They may not use Java keywords.

True

(T/F) They should be named according to function.

True

(T/F) Method and Variable names start in uppercase while class start in lowercase.

False

(T/F) Multi-word identifiers use underscores to separate words, or capitalize the first letter of each word.

True

(T/F) Identifiers may start with underscores.

False

Also called reserved words.

Keywords

Words used exclusively by Java in order to implement its features.

Keywords

Denotes a constant value in a program, its value does not change no matter which part of the program it is used.

Literals

Give the Types of Literals.

> Integer Literals


> Floating-Point Literals


> Character Literals
> Boolean Literals
> String Literals

Denotes digits that are whole numbers; these digits can have different bases, such as octal or hexadecimal bases.

Integer Literals

Denotes digits that contain a fractional or decimal part.

Floating-Point Literals

Denote single characters, such as letters, punctuation marks that are not keywords, & even special characters; these always have single values.

Character Literals

Can only be denoted by true or false.

Boolean Literals

Denote sentences or phrases that require more than a single character.

String Literals

Declare an integer named x with a value of 9.

int x = 9;

Declare a floating-point named y with a value of 4.5.

float y = 4.5f;

Declare a character named c with the value of 'M'.

char c = 'M';

Declare a Boolean named bool with a value of true.

boolean bool = true;

Declare a string named wow with a value of "Hello!"

String wow = "Hello!";