Learning the fundamentals of JAVA
Byte Code > Java Virtual Machine > Native Code
- Standard Edition
- Enterprise Edition
- Micro Edition
- Java Card
-
Primitive Types
- Numbers: Byte, short, int, long, float, double
- Char
- Boolean
-
Reference Types (Non-primitive)
- Their values are usually their location in memory, that's why it's called "reference type"
- Array
- Object
- String
Method that are implemented multiple times
Piece of code that produces a value
- Augmented assignment operator
- E.g: +=, -=, >= ...
1. Implicit Casting
- Automatic Conversion
- E.g: byte > short > int > long > float > double
2. Explicit Casting
- Manual Conversion or Forced Conversion
- E.g: (int) 1.1;
Creates objects without specifying the exact class that will be instantiated.
jar = Java Archive
- File > Project Structure > Artifacts > JAR > modules with dependencies.
- Build > Build artifacts
- open file in terminal
- Run this command:
java -jar NameOfJarFile.jar