Please enable JavaScript to use CodeHS

Texas CS 2 Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Class Java

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

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

String Java

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

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)

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.

Javadoc Java

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

Static method Java

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

Exception Java

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