Notizen
Ch. 1-4 Notes
Inhalt der Notizen (1)
Seite 1
Source Files = .java extension
Class Files = .class extension
A class contains information that is required to create an object
A part of the computers memory is known as the heap.
DrawingKit dk = new DrawingKit("Rectangle");
Integers: Number that can be written without using a decimal point or fraction. (int,byte,short,long)
Floating-Point Numbers: Numbers that contain a decimal point (float & double)
Characters: Single letter of the alphabet, a digit, or a symbol (char)
True/False Values: (boolean) representing either true or false.
IDENTIFIERS:
Cannot contain spaces
Starts with a letter or a number
Underscores may be used
Case sensitive
No Java Keywords
JAVA KEYWORDS:
abstract
assert
boolean
break
byte
case
catch
char
class
const
continue
default
do
double
else
enum
extends
final
finally
float
for
goto
if
implements
import
instanceof
int
interface
long
native
new
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
try
void
volatile
while
Conversions may take place in the following order (6-1):
byte
short
int
long
float
double
Scanner Class:
Scanner scanner = new Scanner(System.in);
P - Parenthesis (), Postfix (a++ a--)
U - Unary operators (++a, --a)
M - Multiplication & Division, Modulus (*, /, %)
A - Addition & Subtraction (+, -)
L - Less Than (, >=)
E - Equality (==, !=)
A - AND (&&)
P - OR (||)
S - Special Assignments (=, +=, -=, *=, /=, %=)
New Page
Informationen
- Beschreibung
- C2 Java Programming Notiz am Ch. 1-4 Notes, erstellt von johnrclark12 am 18/09/2014.
- Erstellt von
- johnrclark12
- Aufrufe
- 10
- Bewertung