What are programmer-defined classes?
Classes that the programmer defines himself and do not come standard with the programming language (library).
What are standard classes?
Predefined classes that come with the Java system.
What is another name for standard classes?
What is a program diagram?
A visual expression of the program.
What is a dependency relationship?
A class is dependent on the services of an object or class if the former sends messages to the latter.
To use an object in a program, first we ___________ an object, and then we send messages to it.
Declare and create.
What is the standard naming convention for objects and classes?
Classes begin with a capital letter, while objects begin with a lower case letter, both follow camelCaseConvention.
What are the rules for naming an identifier?
Reserved words can not be used (consult a reference resource for a complete list). No spaces are allowed. Names are case sensitive, so className is different from CLASSnaME, though both are valid identifiers. Finally, names can consist of letters, digits, underscores(_), and dollar signs($).
What is the new operator?
This is used to create a new object.
What happens when we declare an object?
Designates an identifier to an uninstantiated (memory allocated, but no pointer is assigned there) object.
What is garbage collection?
Deallocating unused memory space. Recycling unused memory.
What is an equivalent idiom to "sending a message"?
Calling/invoking a method.
What are the two logical values?
True and false.
What is a reserved word?
An identifier used for a specific purpose in the Java system, and can't be used for any other purpose, such as the naming of an object.
What three broad concepts compose a java program?
Comments, import statements, class declarations.
What is the point of comments?
Comments help programmers communicate the intent and meaning of their code, and help programmers do teamwork on a program. It enhances readability, and makes debugging and software maintenance easier.
What is a header comment?
These are used at the beginning of programs and methods to indicate their purposes.
Your aim as programmer is always to write easily understandable, _________ program code.
What are packages?
A group of classes. Some of these come standard with the Java system, while some we can organize on our own.
What is dot notation?
How you access classes in packages.
What is a hierarchy of (or nested) package(s)?
Packages which contain packages which contain packages... which ultimately contain classes.
What is a class's fully qualified name?
Using dot notation to indicate where a class belongs in a package. You can work around this laborious convention, by using an import statement at the top of your program.
What is a class declaration?
Definition of a new class, within a program.
What is the main class?
The class which holds the main method. Or the method which executes first in the executing of a program.
What is the edit-compile-run cycle?
The steps involved in executing a program.
What is a source file?
The .java file, or the program in its human readable format with the standard Java commands.
What is a project file?
The folder many IDEs require you to place your source code in.
What is bytecode?
The .class file which is the compiled form of the .java file, and is your program in executable form.
What are compilation errors?
These are problems in your source code, which are caught by the compiler.
What is the source of compilation errors?
Violation of syntax rules.
What is another name for execution errors?
What is another name for the Java Virtual Machine?
What does API stand for?
Application Programming Interface.
What does the Application Programming Interface do for you?
Provides documentation or user manuals or comments for the standard Java classes.
What is a frame window?
A window with no user input options.
What is a dialog window?
A window with user inputs.
What is method composition?
Using the result of a method call as an argument in another method call.
What is string concatenation?
Combining two strings.