Java Programming 1
Java is case sensitive
Total, total, and TOTAL are different identifiers
run-time errors
a problem that occurs during a program execution
Reserved words
already have a predefined meaning in the language
hierarchies
classes can e organized into
decomposition
design separate pieces that are responsible for certain parts of the solution
Machine language
each CPU has its own specific machine language
Java Virtual Machine
executes bytecode
Comments
explain the purpose of the program and describe processing steps
compile-time errors
find syntax errors and other basic problems
Java objects
has state (characteristics), behaviors (operations)
syntax rules
how we can put together symbols, reserved words, and identifiers to make a valid program
Language levels
machine, assembly, high-level, fourth-generation
Classes
object is defined by a class, class is a the blueprint of an object, uses methods to define behavior of the object
Inheritance
one class can be used to derive another
semantics
program statement define what that statement means
logical errors
runs, but produces incorrect results, perhaps wrong formula
compiler
software tool which translates source code into a specific target language
White space
spaces, blank lines, and tabs
Programming Language
specifies the words and symbols that we can use to write a program
development environtment
support the development of Java software (JDK, Eclipse, NetBeans, BlueJ, jGrasp)
Identifiers
the "words" in a program
Java compiler
translates Java source code into a special representation called bytecode
problem solving activities
understand the problem, design a solution, consider alternatives and refine the solution, implement the solution, test the solution
Mechanics of developing a program
writing the program, translating the program, investigating and fixing errors