Java Notes

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

19 Terms

1
New cards

while loop

An entry-controlled loop that repeatedly executes a block of code as long as a specified boolean condition evaluates to true.

2
New cards

Boolean

A primitive data type that can hold only one of two values: true or false.

3
New cards

class and interface

The fundamental building blocks for defining objects and contracts in Object-Oriented Programming.

4
New cards

extends and implements

Keywords used for inheritance and implementing interface methods.

5
New cards

this and super

Keywords that refer to the current object and its immediate superclass, respectively.

6
New cards

new

Keyword used to create instances of classes.

7
New cards

enum

Used to define a fixed set of constants.

8
New cards

public, private, protected

Access modifiers that control the visibility of classes, methods, and variables.

9
New cards

static

Associates members with the class rather than specific instances.

10
New cards

final

Prevents inheritance, overriding, or reassignment of a variable.

11
New cards

abstract

Indicates that a class or method must be implemented by a subclass.

12
New cards

if, else, switch, case, default

Conditional statements that manage conditional execution.

13
New cards

for, while, do

Looping structures used to handle repetitive execution in programming.

14
New cards

try, catch, finally, throw, throws

Keywords used to manage runtime errors and exceptions.

15
New cards

int, boolean, double, char, void

Primitive data types and method return types in Java.

16
New cards

instanceof

Used to check if an object is an instance of a specific class.

17
New cards

var

Allows for local variable type inference.

18
New cards

record

Declares an immutable data class.

19
New cards

sealed and permits

Keywords that restrict which classes can extend a class.