Java flash cards: Apprentice level
61 Java terms at the Apprentice level, as flash cards.
Updated
Terms in this deck
- @Test
- Used to mark a function as a test in JUnit.
- == versus equals()
- A distinction where == compares references while equals() usually compares object content.
- Array
- A fixed-size, indexed collection whose elements all have the same type.
- Array Index
- A zero-based number that identifies an element's position in an array.
- Array Initializer
- A brace-enclosed list of values used to fill an array when it is created.
- Array Length
- The fixed number of elements an array can hold.
- break
- A statement that immediately exits the nearest loop or switch.
- camelCase
- A naming style that starts lowercase and capitalizes each later word.
- case Label
- A possible value that a switch statement can match.
- Command-Line Argument
- A string passed to a Java program when it starts.
- Constant
- A named value intended not to change after initialization.
- continue
- A statement that skips the rest of the current loop repetition.
- default Label
- The switch path used when no case matches.
- Division
- 5 / 2 = 2 -- the remainder is discarded.
- do-while Loop
- A loop that runs its body once before checking whether to repeat.
- Enhanced for Loop
- A loop that visits each element of an array or iterable collection.
- enum
- A type that defines a fixed set of named constants.
- Enumeration Constant
- One of the named values declared inside an enum.
- equals()
- A method used to test whether two objects have equal content.
- equalsIgnoreCase()
- A String method that compares text without treating letter case as different.
- Escape Sequence
- A backslash code that represents a special character inside a string or character literal.
- final
- A modifier that prevents reassignment, overriding, or inheritance depending on where it is used.
- for Loop
- A loop that keeps its setup, condition, and update together.
- Fully Qualified Name
- A type's complete name including its package.
- import Statement
- A declaration that lets code use a type by its short name.
- Infinite Loop
- A loop whose stopping condition never becomes false.
- Instance Variable
- A field stored separately in every object created from a class.
- Java API
- The standard classes and interfaces supplied with the Java platform.
- Java Naming Conventions
- Common capitalization patterns that make Java names consistent and recognizable.
- java.util.Random
- A class that produces pseudorandom values of several primitive types.
- Local Variable
- A variable declared inside a method or block and usable only there.
- Loop Counter
- A numeric variable used to track loop repetitions or positions.
- Math Class
- A standard class containing constants and static mathematical methods.
- Math.random()
- A method that returns a pseudorandom double from 0.0 up to, but not including, 1.0.
- Method Argument
- A value supplied to a parameter when a method is called.
- Method Overloading
- Defining methods with the same name but different parameter lists.
- Method Parameter
- A named input declared by a method.
- Multidimensional Array
- An array whose elements are themselves arrays.
- Nested Loop
- A loop placed inside another loop.
- Package
- A named group used to organize related Java types and avoid naming conflicts.
- Random Number
- A value selected by a generator so its next result is difficult to predict casually.
- Recursion
- A technique in which a method calls itself with a smaller version of the problem.
- Return Type
- The type of value a method promises to return.
- Return Value
- The result a method sends back to its caller.
- Scanner
- A standard-library class commonly used to read typed input.
- Scope
- The part of a program where a name can be used.
- Standard Input
- The input stream a program normally reads from the keyboard or its launching process.
- Static Variable
- A field shared by every object of a class.
- String Concatenation
- Joining strings end to end, commonly with the + operator.
- String Immutability
- The rule that a String's character sequence cannot change after the object is created.
- String Index
- A zero-based position used to locate a character in a String.
- String Interpolation
- Inserting values into text; Java normally uses formatting methods rather than interpolated string literals.
- String Length
- The number of UTF-16 code units in a String.
- StringBuilder
- A class for efficiently building or changing a sequence of characters.
- substring()
- A String method that returns part of an existing string.
- Ternary Operator
- The ?: operator, which chooses one of two values from a condition.
- Ternary Operator
- A single line if/else statement.
- Text Block
- A multiline string literal enclosed by three double quotes.
- var
- A reserved type name that asks the compiler to infer a local variable's type.
- void
- A return type showing that a method returns no value.
- while Loop
- A loop that repeats while its condition remains true.