Shared Flashcard Set

Details

Big Java
facts related to Java/Object Oriented Programming/Big Java-Horstmann
56
Computer Science
Undergraduate 1
05/18/2013

Additional Computer Science Flashcards

 


 

Cards

Term
Fundamental building blocks of java programs
Definition
classes
Term
Fundamental building blocks of java programs
Definition
classes
Term
Every java app contains a class with a _ method
Definition
main
Term
contains a sequence of instructions
Definition
method
Term
when a java application starts, the instructions in the _ method are executed
Definition
main
Term
Each class contains_ of methods
Definition
definitions
Term
3 things needed to call a method
Definition
specify an object, method name, method parameters
Term
sequence of characters enclosed in quotation marks
Definition
string
Term
data items
Definition
objects
Term
things you implement
Definition
classes
Term
things you manipulate
Definition
objects
Term
In java, every value has a _
Definition
type
Term
System.out is a(n)
Definition
object
Term
PrintStream is a(n)
Definition
type
Term
type for number with a fractional part
Definition
double
Term
numbers in exponential notation always have type _
Definition
double
Term
when a numerical value occurs in java, it is called a _
Definition
number literal
Term
3 advantages of integers over floating point number types
Definition
Less storage space, faster processing, no rounding errors
Term
when to use "int" type
Definition
for quantities that never have fractional parts, such as length of a string
Term
when to use "double" type
Definition
for quantities that can have fractional parts
Term
Number types int and double are _ types
Definition
primitive
Term
Do number types have methods?
Definition
no
Term
Combination of variables, literals, operators and/or methods
Definition
expression
Term
storage location in the computer's memory that has a type, name, and contents
Definition
variable
Term
When you declare a variable, what two decisions do you need to make?
Definition
type, name
Term
The name of a variable, method, or class in java
Definition
identifier
Term
can an identifier start with a digit?
Definition
no
Term
can an identifier contain spaces or symbols?
Definition
no
Term
starts with lowercase letter
Definition
variables and method names
Term
Starts with uppercase letter
Definition
class names
Term
$ symbol is used for_
Definition
names automatically generated by tools
Term
value you can manipulate by calling one or more of its methods
Definition
object
Term
sequence of instructions that can access the internal data of an object
Definition
method
Term
you _ a method
Definition
call
Term
type of object
Definition
class
Term
The System.out object belongs to what class
Definition
PrintStream
Term
The "Hello World!" object belongs to what class
Definition
String
Term
A _ specifies the methods you can apply to its objects
Definition
class
Term
Every _ belongs to a _. The _ declares the _ for the _.
Definition
Every object belongs to a class. The class declares the methods for the objects.
Term
The methods for the _ of the class, telling you what you can do with the objects of the class
Definition
public interface
Term
A class declares a _ describing the data inside its objects and the instructions for its methods
Definition
private implementation
Term
The println method name is _ because it refers to more than one method
Definition
overloaded
Term
The object on which you invoke a method is a(n) _ parameter
Definition
implicit
Term
The process of making a new object
Definition
construction
Term
Method that accesses an object and returns some information about it
Definition
accessor
Term
Method whose purpose is to modify internal data of an object
Definition
mutator
Term
Java refers to object attributes that can change as_
Definition
fields
Term
If a method return type is _, it does not return anything.
Definition
void
Term
The header of a method. Provides info needed to invoke that method.
Definition
Signature
Term
Stores data persistently within an object
Definition
fields
Term
responsible for ensuring that an object is set up properly when it is first created
Definition
constructors
Term
Implement the behavior of an object; provide its functionality
Definition
methods
Term
Means to store a value in a variable
Definition
Assignment Statement
Term
Does a Constructor have a return type?
Definition
never!
Term
How many parameters can constructors and/or methods have?
Definition
0 to infinity
Term
what is "return x"
Definition
return statement
Supporting users have an ad free experience!