Term
click below
click below
Term
Normal Size Small Size show me how
AP Computer Science
Term | Definition |
---|---|
execute | In reference to a program, to run the program after compiling it. In reference to a statement in a program, to carry out the statement. |
parameter | A "place holder" variable in the method signature located between the parentheses. Ex: public void exampleMethod(int number) |
conditional statements | Executed by evaluating the boolean expression that immediately follows the word "if"; if the resulting value is true, the statements in the body of the then are executed, otherwise the statements in the body of the else are executed. |
boolean | A Java type that represents yes-or-no values. There are two boolean constants: true and false. |
class | a set of instructions describing how to create an object, what variables represent its internal state, and what behaviors the object will have |
string | A type of data in Java (and many other programming languages); the String class represents strings of characters in Java. A string holds a sequence of letters, numbers, and other characters. |
call | What one does to use a method. A method call may require one or more arguments—additional pieces of information—to process as intended. |
return | To finish executing a method call. The next statement to be executed will be the statement right after the method call. Returning from a method can be done implicitly, by executing the last statement of a void method, or explicitly, by executing the ret |
instance | each object produced in class |
object code | The form of a program that can be executed; the output of a compiler. |
source code | The people-readable text of a program. Contrast object code. |
object bench | The area in the lower left corner of the main BlueJ project window that holds references to objects that one creates from the classes in a project. |
constructor | The area in the lower left corner of the main BlueJ project window that holds references to objects that one creates from the classes in a project. Has no return type |
void | The word void at the front indicates what type of thing the method will return after it has been run. This method returns nothing, which in Java is described as void. |
comments | Comments can be used to explain and remind the author what the purpose of the code is. Making comments on code makes the code easier to read, especially for another person who has never read your code. |
private | An attribute of a Java method or instance variable that specifies that only statements within the definition of the enclosing class can call the method or access the instance variable. In Java programs, instance variables are almost always private. |
public | An attribute of a Java method or instance variable that specifies that any statement outside as well as inside the enclosing class can call the method or access the instance variable. In Java programs, methods are often public. Contrast private. |
method body | The statements that comprise a method. In a method definition, these come directly after the method header, and are surrounded by braces. The statements in a method body are executed in order. |
code | xfff3dy |
abstraction | The process of noticing similarities in examples and identifying the pattern that all the examples fit. Also, using an abstraction to hide details. |
reuse | Use of already written code in another program. |
Error check | Test for illegal input or for inconsistencies in a program that are likely symptoms of bugs. |
conditional statement | Executed by evaluating the boolean expression that immediately follows the word "if"; if the resulting value is true, the statements in the body of the then are executed, otherwise the statements in the body of the else are executed. |
Modulus | is an arithmetic operation in which numbers "wrap around" after a certain value is reached. The modulus operator takes two numbers, and returns the remainder after the second number is divided into the first number as many times as possible. |