The process of formulating a problem, finding a solution, and expressing the solution.
A programming language like Java that is designed to
the file that contains the bytecode that the Java compiler has translated the source code
into (Ch. 1 p. 14)
the file that contains the source code of a Java program. (Ch. 1 p. 14)
is a low-level programming language in which a mnemonic is used
Two types of exceptions
Two types of unchecked execptions
Valid Java programming must honor the:
Failing to honor the "Catch or Specify Requirement" results in:
Three categories of exceptions:
checked and unchecked
runtime exception and error
Catch or Spe
- immutable string type, i.e. the value of the string can't be
modified once it is set
returns the length (int) of a String object
charAt(int index) (String) returns the character referenced by the specified index
- indicates whether two
equals(Object obj) (Object)
checking for deep equality
- root of the class inheritance hierarchy
- every Java class inherits the methods of the Object class
- indicates whether some other reference is referenc
'equals()', 'hashCode()', and 'toString()' are .
Use '=' to determine if .
Use 'equals' to determine if .
If you don't override 'equals()', your objects
won't be .
If you don't override 'equals()', different
objects can't be .
String and wrappers override
Encapsulation helps .
hide implementation details behind an interface (or API).
Encapsulation code has two 1) Instance variables are kept protected (usually with the private modifier)
2) Getter and setter methods provide access to instance varia
There are four access levels:
Classes can have only .
public or default access.
A class with default access can be .
seen only by classes within the same package.
What do real world objects contain?
Where is a software object's state contained?
Where is a software object's behavior exposed?
Hiding internal data from the outside world, and
accessing it only through publicly exposed
methods is known as data.
Source code file name
Access modifier; these modifiers control the level of access other parts of a
program have to this code.
Following the keyword class is th