# Fork: GodOfJava 2nd Edition
# 자바의신 코드 저장소- 01 Programming
Class & Method
- A class is the minimum unit of java consisting of state and behavior.
- A method receives the parameter and returns the calculation result.
- 02 Hello God Of Java
Building a development Environment
- Compilation of Java File
- Printing on the console
- Comment
public class Sample {
public static void main(String[] args){
System.out.println("Printing on the console.");
}
}- 03 Object Oriented Programming
Concept of Object
- An object is an instance of a class.
- A class consists of variables and methods.
public class Calculator {
public static void main(String[] args) {
System.out.println("Constructor");
Calculator myCalculator = new Calculator();
}
}- 04 Data Type
Variables of Java
- Java has 4 types of variables and each of them has different range of scope and usability.
# === 4 Types of Variables ===
1. Local variables
2. Parameters
3. Instance Variables
4. Class VariablesData Types
- Primitive Data Type vs Reference Data Type
# === 4 Types of Variables ===
1. Local variables
2. Parameters
3. Instance Variables
4. Class Variables