Java - Terms
When using System.out.printf or System.out.format should you use \n or %n for a new line character?
%n
A Sun Microsystems initiative to guide developers in writing, certifying, and marketing applications written entirely in the Java(TM) programming language.
100% Pure Java
The specification of how a programmer writing an application accesses the behavior and state of classes and objects.
API
Largely supplanted by the Project Swing component set.
AWT
AWT
Abstract Window Toolkit
*, /, %, +, -
Arithmetic operators
JavaDoc produces what type of documentation?
HTML
An easily customizable Web browser developed by Sun Microsystems, which is written in the Java(TM) programming language.
HotJava
The Path environment variable should have an entry for what?
JDK bin directory
A subset of the Java Development Kit (JDK(TM)) for end-users and developers who want to redistribute the runtime environment alone.
JRE
What software do I need to have the javac compiler installed?
Java Development Kit
&&, ||
Logical operators
If the superclass is not explicitly specified, the superclass will implicitly be
Object
bunch of classes
Package
Environment variable for java binaries like javac?
Path
In order to run javac from the command line, what environment variable must be set?
Path
many forms
Polymorphism
Declare a new variable - rand - in the random class
Random rand = new Random();
<, >, <=, >=, instanceof
Relational operators
Default location for .class files constructed by javac unless the -d option is used?
Same as source file
-expression, +expression, ++expression, !, etc.
Unary operators
In the method call statement that uses variables, they are called?
arguments
A reusable software component.
bean
References and Acknowledgements from CS 139 go before or after the import statement?
before
import statement goes before or after Javadoc comment?
before
An operator that has two arguments.
binary operator
An operator that manipulates two values comparing each bit of one value to the corresponding bit of the other value.
bitwise operator
A Java(TM) programming language keyword used to resume program execution at the statement immediately following the current statement. If followed by a label, the program resumes execution at the labeled statement.
break
A Java(TM) programming language keyword that defines a group of statements to begin executing if a value specified matches the value defined by a preceding "switch" keyword.
case
Explicit conversion from one data type to another.
casting
A Java(TM) programming language keyword used to declare a block of statements to be executed in the event that a Java exception, or run time error, occurs in a preceding "try" block.
catch
In the Java(TM) programming language, a type that defines the implementation of a particular kind of object.
class
A method that is invoked without reference to a particular object. Class methods affect the class as a whole, not a particular instance of the class.
class method
invoked by the class instead of a specific instance, and can only operate on class variables.
class methods
A data item associated with a particular class as a whole--not with particular instances of the class.
class variable
an environmental variable which tells the Java(TM) virtual machine* and Java technology-based applications (for example, the tools located in the JDK(TM) 1.1.X\bin directory) where to find the class libraries, including user-defined class libraries.
classpath
A pseudo-method in a class that creates an object.
constructor
A Java(TM) programming language keyword used to resume program execution at the end of the current loop
continue
decision statements like (if - else) and loops can be called?
control structures
A public class (or interface) that is a standard member of the Java(TM) Platform.
core class
A Java(TM) programming language keyword optionally used after all "case" conditions in a "switch" statement.
default
The localization of knowledge within a module.
encapsulation
An event during program execution that prevents the program from continuing normally; generally, an error.
exception
parameters and arguments can also be called what and what?
formal parameters and actual parameters
Process of breaking down a problem into smaller pieces?
functional decomposition
The automatic detection and freeing of memory that is no longer in use
garbage collection
Methods have these two elements?
header and body
import statement for using the Random class?
import java.util.Random;
Add JOptionPane class
import javax.swing.JOptionPane
The concept of classes automatically containing the variables and methods defined in their supertypes.
inheritance
An object of a particular class.
instance
Any item of data that is associated with a particular object.
instance variable
A module that alternately decodes and executes every statement in some body of code.
interpreter
Assume keyboard is a Scanner object. Statement necessary at the end of code block to close the Scanner object.
keyboard.close();
A Java(TM) programming language keyword used to create an instance of a class.
new
A void method returns?
nothing
A Java(TM) programming language keyword used to specify an undefined value for reference variables.
null
Providing a different implementation of a method in a subclass of the class that originally defined the method.
overriding
The method header definition contains arguments or parameters?
parameters
A Java(TM) programming language keyword used in a method or variable declaration. It signifies that the method or variable can only be accessed by other elements of its class.
private
It signifies that the method or variable can only be accessed by elements residing in its class, subclasses, or classes in the same package.
protected
A Java(TM) programming language keyword used in a method or variable declaration. It signifies that the method or variable can be accessed by elements residing in other classes.
public
If I have two classes in one file, only one of the classes can be?
public
What does rand.nextInt(10); return? Where rand is an object of the Random Class.
random integer between 0 and < 10
A Java(TM) programming language keyword used to define a variable as a class variable.
static
key word used to define class variables and class methods
static
Another name for class method.
static method
A Java(TM) programming language keyword used to access members of a class inherited by the class in which it appears.
super
If a class is declared as public or is referenced from another source file, the filename of the class must be called what?
the class name
A Java(TM) programming language keyword that can be used to represent an instance of the class in which it appears
this
Environment variable for java classes?
CLASSPATH
The required set of APIs in a Java platform edition which must be supported in any and all compatible implementations.
Core packages