Java Games: Flashcards, matching, concentration, and word search.

AP CS Java Unit 2 Flashcards Matching Word Search

AB
DRY principlea software development principle that stands for "Don't Repeat Yourself" which aims to reduce repetition in code
access modifiera keyword used to set the visibility of classes, variables, constructors, and methods
encapsulationan object-oriented programming concept where the instance variables of a class are hidden from other classes and can be accessed only through the methods of the class
instance variablea variable defined in a class that represents an attribute of an object
refactorto improve the readability, reusability, or structure of program code without altering its functionality
constructor signaturethe first line of the constructor which includes the public keyword, the constructor name, and any parameters
default valuea predefined value that is used by a program when the user does not provide a value
no-argument constructora constructor with no parameters
actual parameterthe value to assign to the formal parameter
call by valuecopying the value of the actual parameter to the constructor's formal parameter
formal parameterthe value to be passed to a constructor or method
local variablea variable declared and accessible within a specific block of code
overloadingdefining two or more constructors or methods with the same name but different signatures
parameterized constructora constructor that has a specific number of arguments to be passed to assign values to an object's instance variables
statethe attributes of an object that are represented by its instance variables
scopewhere a variable can be used
assignmentusing the assignment operator ( = ) to initialize or change the value stored in a variable
initializationgiving a starting value to a variable using the assignment operator ( = )
literala source code representation of a value, such as a number or text
primitive typea basic data type that Java predefines
reference typea data type that contains a pointer to the memory location of an object
accessor methodgives the value that is currently assigned to an instance variable
application program interface (API)a library of prewritten classes
librarya collection of methods or reusable components of code
return by valuea copy of the value is given to where the method is called
compound assignment operatorshortcut syntax to perform an operation on both operands and assign the result into the variable on the left
compound expressiona combination of expressions
concatenationwhen two Strings are joined together
expressiona combination of data and operators that evaluates to a single value
operandthe data that is operated on
truncateto cut off data from the end
Boolean expressiona logical statement that gives either a true or false value
mutator methodchanges the value assigned to an instance variable
relational operatoran operator used to compare values or expressions
escape sequencestarts with a \ to indicate how to display a String
overrideto define a method in a subclass with the same method signature as a method inherited from a superclass


Technology Teacher
Minuteman High School

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities