Please enable JavaScript to use CodeHS

Texas CS 2 Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Parameter Java

A variable that receives a value passed into a method from outside the method.

Return statement Java

The `return` statement exits a method and returns a value.

Return value Java

The value returned from a method.

Return type Java

A method's return type is the type of value returned from that method.

Method signature Java

A method's signature is the name of the method and the parameter list.

Call site Java

A method's call site is the point in the code where the method is called.

Class Java

A class is a template, or a blueprint, from which Java objects are created. All Java programs start with a class.

String Java

String is a Java type that represents a string of characters (text)

char Java

`char` is a Java type that represents a single character (a single letter)

Object Java

An object is a single instance of a Java class. An object has both state and behavior.

Primitive Type Java

Primitive types are the basic, simple data types that are inherent to Java (int, double, char, and boolean)

Substring Java

A substring is a smaller sequence of characters in a larger String.

Immutable Java

Unable to change. Strings in Java are immutable, meaning you can't change it once you make it. If you take a substring of a String, or concatenate something to a String, the result is a *brand new* String, rather than a modification of the original.

Method Java

A method is a way to teach the computer a new command

Define a method Java

Defining a method means to teach the computer a new command and explain what it should do when receiving that command.

Calling a method Java

Calling a method actually gives the command, so the computer will run the code for that method.

Method body Java

The part of the method that contains the commands

System.out.println Java

Java method that lets us print out a line of output to the user

System.out.print Java

Java method that lets us print output to the user, without ending the line printed.

Double Quotes General

The `"` character

Escape Sequence General

Escape sequences are characters with special meanings.

Static method Java

A method called on the Class, rather than on a specific object of the Class.

Pseudocode General

Pseudocode is a brief explanation of code in plain English.

Pseudocode

Top Down Design Java

Top down design is a method for breaking a problem down into smaller parts.

Javadoc Java

A specific standard for commenting Java programs. Javadoc is a format to follow when commenting in order to clearly explain your code.

Exception Java

An exception is thrown by Java when a **runtime error** is encountered. The exception provides information about what kind of error occurred.

Comment Java

A message in your code that explains what is going on.

Java Documentation Java

Documentation showing the syntax and examples for how to use the various features of Java.

Bug General

A bug is a problem in your code.

Bug

Compile Time Error Java

An error in the actual Java code. The code will not **compile** into an executable program, because there are errors in the text of the code.

Compiler Java

A tool that compiles your Java code, it takes the Java code you've written and turns it into an executable program.

Runtime Error Java

An error that happens while the program is running. Even if the code is written with the proper syntax, there are things that can go wrong while the program is running.