1/60
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Machine Language
Definition: The most basic language of 0s and 1s that a computer's hardware directly understands. Watch out: Each computer model has its own unique machine language, so programs aren't portable.
Definition: A more English-like language that uses short names instead of numbers to represent machine instructions. Example: LOAD BASEPAY is easier to read than 0101 0011.
Definition: A translation program that converts assembly language instructions into machine language.
Definition: A programming language that uses English words and familiar symbols, making it the easiest for humans to write. Example: Java and C++ are high-level languages.
Definition: A translation program that converts high-level language code into the machine language of a specific computer. Watch out: This is why high-level language programs are portable across different computers.
Definition: A method that returns the value of an instance variable without changing it. Syntax: Names usually start with "get", like getX().
Definition: A method that changes the value of one or more instance variables. Syntax: Names usually start with "set" or an action word, like translate().
Definition: The current values of all the instance variables of an object at a given moment.
Definition: A code that represents each character as a unique 8-bit pattern. Example: The letter 'A' has the ASCII value 65.
Definition: A 16-bit character code that can represent 65,536 different characters, enough for most world languages. Watch out: The first 256 Unicode characters are identical to ASCII.
Definition: A statement that evaluates an expression and stores the result in a variable. Syntax: variable = expression; Watch out: Read the equals sign as "gets," not "equals."
Definition: A variable that has been declared but never given a value. Watch out: Using one causes a compiler error in Java.
Definition: The memory address of an object, which is what an object variable actually stores instead of the object itself. Watch out: Assigning one object variable to another copies the reference, so both variables end up pointing to the same object.
Definition: The automatic process Java uses to reclaim memory from objects that no variable refers to anymore.
Definition: A call from one constructor to another constructor in the same class, used to avoid repeating code. Watch out: The this() call must be the very first line inside the constructor.
Definition: A special method that runs automatically when an object is created, giving its instance variables initial values. Watch out: A constructor has no return type, not even void, and shares the class's exact name.
Definition: A constructor that takes no parameters. Example: Rectangle name = new Rectangle();
Definition: A constructor that takes one or more parameters to set an object's initial values. Example: Rectangle name = new Rectangle(10,20,30,40);
Definition: The first line of a method, listing its access specifier, return type, name, and parameter list. Example: public int getAltitude()
Definition: A keyword that controls who is allowed to call a method, such as public.
Definition: A statement that ends a method and can send a value back to whoever called it. Watch out: A void method can only use "return;" with no value after it.
Definition: The Java keyword used to create a new object, calling its constructor and returning a reference to it. Example: Rectangle box = new Rectangle(10,20,30,20);
Definition: A special value meaning an object variable is not currently referring to any object. Watch out: Calling a method on a null reference throws a NullPointerException.
Definition: A variable declared inside a class but outside any method, storing an attribute that belongs to every object of that class. Watch out: Each object created has its own separate copy of every instance variable.
Definition: A variable declared inside a method's heading that receives a value when the method is called.
Definition: A variable declared inside a method's body that only exists while that method is running. Watch out: It must be explicitly initialized before use, or the compiler will complain.
Definition: The portion of a program in which a variable can be accessed, or is "known."
Definition: An unambiguous, step-by-step set of instructions that is guaranteed to finish and produce a result.
Definition: A requirement that must be true about an algorithm's input for it to work correctly. Watch out: If a precondition isn't met, the algorithm is allowed to fail.
Definition: A mistake in the grammar of code that the compiler catches before the program can run. Example: Forgetting a semicolon at the end of a statement.
Definition: An error that occurs while a program is executing, such as dividing by zero. Watch out: An unhandled exception makes the program crash.
Definition: A mistake where the program compiles and runs normally but produces the wrong output. Watch out: Only careful checking of the actual output can catch a logic error.
Definition: A sequence of characters, such as a word or sentence, treated as one value.
Definition: Any sequence of characters enclosed in double quotes in Java code.
Definition: Joining two strings together into a single string using the plus sign. Example: "Hi" + " Mom" becomes "Hi Mom".
Definition: Two characters, starting with a backslash, that Java treats together as one special character. Example: \n starts a new line of output.
Definition: The blueprint or template that defines what objects of that type know and can do. Watch out: A single class can be used to create many different objects.
Definition: A specific instance of a class, with its own attributes (what it has) and behaviors (what it does).
Definition: A block of code inside a class that carries out one of an object's behaviors.
Definition: Using a method by knowing only what it does, without needing to know how it works internally.
Definition: Documentation that lists the classes and methods available for programmers to use, along with how to call them.
Definition: The order in which Java performs operations when an expression has more than one operator. Watch out: Multiplication, division, and modulus happen before addition and subtraction.
Definition: Division between two integers that keeps only the whole number part of the answer and drops the remainder. Example: 9 / 5 equals 1 in Java.
Definition: An operator that returns the remainder left over after dividing two integers. Example: 9 % 5 equals 4.
Definition: The special method where every Java program begins running. Syntax: public static void main(String args[])
Definition: A word with special meaning in Java that cannot be used as a name for anything else. Example: public, class, and static are keywords.
Definition: A name a programmer chooses for a class, variable, or method.
Definition: Text in code that the compiler ignores, used to explain the program to humans. Syntax: Two forward slashes // start a single-line comment.
Definition: Having two or more methods in the same class with the same name but different parameter lists. Watch out: Methods cannot be overloaded by return type alone.
Definition: A parameter is the placeholder listed in a method's heading, while an argument is the actual value passed in when the method is called.
Definition: Keeping an object's instance variables and methods bundled together and protecting the variables from being accessed directly.
Definition: Hiding the implementation details of a class so users only need to know its methods, not how they work.
Definition: The advantage of being able to use the same class to create many objects or reuse it across different programs.
Definition: The idea that different, unrelated objects can share a similar behavior that each performs in its own way. Example: Both a bird and a plane can fly, but very differently.
Definition: When a parameter or local variable has the same name as an instance variable and blocks access to it. Watch out: Use the keyword this to reach the instance variable instead.
Definition: A reference to the current object, often used to access its instance variables when they are shadowed. Syntax: this.radius = radius;
Definition: A method that returns a String describing the current state of an object. Syntax: public String toString() Watch out: Every toString() method must use this exact signature.
Definition: Redefining a method a class already inherited, such as toString(), to give it new behavior.
Definition: A named location in memory that stores one value of a specific data type.
Definition: The kind of value a variable can hold, such as int, double, or String.
Definition: A naming style where a variable starts lowercase and each following word starts with a capital letter. Example: luckyNumber and timeOfDay.