Java editing, compiling and executing:
If statement anatomy:
For loop(alternative loop) Anatomy:
While loop(pretest loop) Anatomy:
Switch Statement: Some array examples:
Java Primitive Data Types:
-Boolean
-char (16 bits)
-byte (8-bits of memory, numerical range is from -128 to 127)
-short (16-bits of memory, numerical range is from -32,768 to 32,767)
-int (32-bits of memory, numerical range is from -2^31 to 2^31 -1)
-Long (64-bits of memory numerical range is from -2^63 to 2^63 -1)
-Float (4 bytes)
-double (8 bytes)
Non-Primitive Data Types:
-String, Array, Class, Interface
Instance Variables:
Types of Variables:
Instance variables:
Declared inside the class but outside of the method, block or
constructor. If not initialized, the default value is 0. Variables are
created when an instance of the class is created and destroyed when it
is destroyed.