Skip to content

Java Basic Concepts

Ilya Khadykin edited this page Jun 26, 2016 · 1 revision

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
Clone this wiki locally