What is java
-object oriented programming language
What are key words
These are words that have special meaning in the programming language
-key words are also known as reserved words
-they may by used for their intended purpose only
What is an operator
Operators are symbols or words that perform operations on one or more operands
What is an operand
an item of data such as a number
What is punctuation
Most programming languages require the use of punctuation characters
-these serve specific purposes such as marking the beginning or ending of a statement or separating items in a list
What are programmer-defined names
-They are not like key words, which are part of the programming language
-Programmer-defined names are words or names that are defined by the programmer
-can be used to identify storage locations in memory and parts of the program that are created by the programmer
-programmer defined names are called identifiers
what is a syntax
these are rules that need to be followed when writing a program.
-syntax dictate how key words and operators should be used and where punctuation symbols must appear
How do you organize the java code
-in classes
-inside a class there are variables which are place holders for data (could be simple values or driven from other classes)
-Methods, which contain the code to process the data. They can have their own data variables in addition to the ones defined at the class level
What is used at the end of Java Statements
semi colons
What is the source code
programmer writes code
-source code files have a .java file extension
What is a compiler
-Compiler translates source code into another file containing translated instructions
-This process checks for syntax errors (such as missing semicolon)
-Complier=java turns into bytcode (.class)
What is bytecode
The compiler output isn’t a direct machine code like in C/C++, so Java complies into a intermediate form called bytcode
-it is a machine language of the JVM (java virtual machine) not of the physical CPU
Why is Java code portable
-it can run on any computer with a JVM
What is JVM(interpreter)
-it acts like an interpreter that reads the .class bytecode and translates it into real CPU language
-bytecode turns into machine code to run on CPU
What are escape sequences?
-escape sequences are special combinations of characters that start with backslash
What are variables
-a named storage location in a computers memory
what is a literal
-value that is written into the code of a program