1/26
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Programming
The art of problem-solving involving analyzing complex issues and providing instructions for a computer to execute.
Java
A widely used programming language known for its platform independence and use in corporate environments.
Platform Independence
Java's capability to run the same code on different operating systems without modification.
Bytecode
The intermediate representation of Java code that is executed by the Java Virtual Machine (JVM).
Java Virtual Machine (JVM)
The component of Java that interprets bytecode and allows Java programs to run on any platform.
Object-Oriented Programming (OOP)
A programming paradigm based on the concept of 'objects', which contain data and methods.
Variable
A named storage location in memory that holds a data value.
Primitive Types
Basic data types provided by Java, including int, double, and boolean.
Integer (int)
A Java primitive type for whole numbers that occupies 32 bits of memory.
Double
A Java primitive type for decimal numbers (floating point) that occupies 64 bits of memory.
Boolean
A Java primitive type that represents logical values, either true or false.
Declaration
The process of defining a variable's type and name in Java.
Initialization
The process of assigning an initial value to a variable after its declaration.
Assignment Operator (=)
An operator in Java that assigns the value on the right to the variable on the left.
Arithmetic Operators
Symbols in Java representing mathematical operations such as addition (+), subtraction (-), multiplication (*), and division (/).
Integer Division
The operation of dividing two integers in Java, resulting in truncation of any decimal part.
Modulo Operator (%)
An operator that returns the remainder of a division operation in Java.
Compound Assignment Operators
Operators that combine an operation and assignment into one step, e.g., += adds and assigns.
Increment Operator (++)
An operator that increases a variable's value by 1.
Decrement Operator (--)
An operator that decreases a variable's value by 1.
Casting
The conversion of one data type into another, such as from int to double.
Widening Conversion
Implicit conversion from a smaller to a larger data type in Java.
Narrowing Conversion
Explicit conversion from a larger to a smaller data type, which can lead to data loss.
Integer Overflow
A condition where an arithmetic operation exceeds the maximum limit of an integer type, causing it to wrap around.
Uninitialized Variables
Variables that have been declared but not assigned a value, leading to potential compiler errors.
Common Mistakes in Java
Frequent errors like integer division trap, confused assignment vs. equality, and incorrect casting.
Rounding with Casting
A technique to round a double to the nearest integer by adding 0.5 before casting to int.