Final-Java Chap 1 Gaddis Flashcards
What team was started by what company in 1991?
Green Team started by Sun Microsystems
What did the Green Team work on?
A handheld controller for multiple entertainment systems.
What did they need next?
They needed a programming language that would run on various devices. Java.
What was Java first named?
Oak
What was demonstrated at the 1995 Sun World conference?
a Java enabled web browser (Hot Java)
Shortly after…
Java incorporated into Netscape.
cross platform
can run on various computer operating systems
Java programs can be of 2 types
Applications and Applets
Applications
stand-alone programs that run without the web. Relaxed security model since the program is run locally
applets
small applications that require the use of a java enables web browser to run. Enhanced security model.
program
a set of instructions (algorithm) a computer follows in order to perform a task
A computer needs the algorithm to be written in
machine language
machine language in written using
binary numbers
Each CPU has
its own machine language
first programming language
assembler
Assembler was
processor dependent
common concepts:
key words, operators, punctuation, programmer-defined identifiers, strict syntactic rules
sample program (Hello world)
public class HelloWorld { public static void main (string[] args) { String message = "Hello World"; System.out.println(message); } }
is Java case sensitive?
yes
key words are
lower case
some examples of key words are
public, class, static, void
key words cannot be used as a
programmer-defined identifier
semi-colons are used
to end Java statements
statement
not just a line; a complete Java instruction that causes the computer to perform an action
Data is stored…
in memory
Variable names represent…
a location in memory
variables in Java are sometimes called
fields
variables are created
by the programmer who assigns it a programmer-defined identifier
ex: int hours=40
where hours is the variable
decides where the value will be placed in memory
Java Virtual Machine (JVM)
source code
Java programming statements