Java Basic Concepts - ilya-khadykin/notes-outdated GitHub Wiki

Entry point

package com.example.project1;

public class Main {

  public static void main(String[] args) {
    // Entry point to your application
  }

}

Classes

  • Class models a real world object, person or car for example
  • Class fields represent features of a real world object
  • Class methods model behavior of a real world object, or used to change its features