New Terms | Heaton Research

New Terms

Get the entire book!
Java for the Beginning Programmer

boolean A primitive datatype that holds true or false.

Boolean class A holder class for the boolean primitive datatype.

char A primitive data type that holds single characters. To hold multiple characters, see the String class.

Comment A note that is placed in the program by the programmer. The comment has no effect on the way that the program runs. Comments can be single line or multi-line.

byte A Java primitive data type that holds very small numbers that would fit into a single byte.

Byte class A holder class for the byte primitive datatype.

Constant A variable that holds a fixed value and cannot be changed. Java constants always start with the keyword final.

double A Java primitive datatype that can hold floating point numbers. The double datatype is larger than the float datatype.

Double class A holder class for the double primitive datatype.

final The Java keyword that designates a variable as constant.

float A Java primitive data type that holds floating point numbers. The float datatype is smaller than the double datatype.

Float class A holder class for the float primitive datatype.

indent Java source code is indented to make it appear clearer.

int A Java primitive datatype used to hold numbers. The int datatype is smaller than the long datatype, but larger than the short datatype.

Integer class A holder class for the integer primitive datatype.

long A Java primitive datatype used to hold numbers. The long datatype is larger than the int datatype.

Long class A holder class for the long primitive datatype.

Primitive Data Type A datatype that is not a class. Java’s primitive datatypes are: char, byte, short, int, long, float, double and boolean.

short A Java primitive datatype that holds numbers. The short datatype is smaller than the int datatype.

Short class A holder class for the short primitive datatype.

String A Java class that can hold text data.

Type Cast To convert from one datatype to another. A cast is usually denoted by the desired datatype in parenthesis, such as (int).

Copyright 2005-2008 by Heaton Research, Inc.