Java Programming Fundamentals

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/23

flashcard set

Earn XP

Description and Tags

Flashcards covering key Java programming concepts, syntax, and definitions from the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

Statement Terminator

Every complete statement in Java ends with a period.

2
New cards

Literals

Fixed values or data examples like 72, 'A', "Hello World", 2.8712.

3
New cards

Braces ({})

Enclosures for a group of statements, such as the contents of a class or a method.

4
New cards

Negation Operator

A unary operator.

5
New cards

final keyword

Used to declare a named constant, preventing its value from being changed.

6
New cards

Multi-line Comment

Starts with /* and ends with */.

7
New cards

Single-line Comment

Starts with // and ends at the end of the line.

8
New cards

Documentation Comment

Starts with /** and ends with */, typically processed by javadoc.

9
New cards

Scanner.nextLine()

The Scanner class method used to read a string as input.

10
New cards

Scanner.nextDouble()

The Scanner class method used to read a double as input.

11
New cards

JOptionPane

A class used to display dialog boxes.

12
New cards

Widening Conversion

When Java converts a lower-ranked value to a higher-ranked type automatically.

13
New cards

Cast Operator

Allows manual conversion of a value, even if it results in a narrowing conversion.

14
New cards

Variable Declaration

Statement that tells the Java compiler the variable's name and the type of data it will hold.

15
New cards

Self-documenting Program

A program whose code is easy to understand just by reading it, often due to clear variable names and comments.

16
New cards

Case-sensitive Language

A language (like Java) that regards uppercase letters as entirely different characters than their lowercase counterparts.

17
New cards

System.out.print/println

Methods of the 'out' object, which is contained within the System class, used for output to the console.

18
New cards

Data Type Considerations

When choosing a data type, consider the nature of the data, the amount of memory the variable uses, and how it formats and stores data.

19
New cards

Variable Assignment

Giving a value to an already declared variable.

20
New cards

Variable Initialization

Declaring a variable with a data type and assigning its initial value simultaneously.

21
New cards

Programming Style

The way a programmer uses spaces, indentations, blank lines, and punctuation to visually arrange source code, promoting organization and readability.

22
New cards

Named Constant Advantage

Makes programs more self-documenting and allows for easy, widespread changes to a value across the program.

23
New cards

javadoc command

Used to generate HTML documentation files from Java source files containing documentation comments (e.g., javadoc SalesAverage.java).

24
New cards

Type Promotion (Arithmetic)

When an expression adds a byte variable and a short variable, the result will be an int type due to type promotion rules in Java.