[Java] Object-oriented syntax-Package

What is a package?

Naming rules

Default package

Name resolution

import com.example.neko.object.Animal;
Animal animal = new Animal();

Import type

static import

import static java.lang.Math.abs;
//All static methods under Math class are statically imported
//import static java.lang.Math.*;

public class ImportStatic {

  public static void main(String[] args) {
    System.out.println(abs(-10));
  }
}

Recommended Posts

[Java] Object-oriented syntax-Package
[Java] Object-oriented
Object-oriented FizzBuzz (Java)
[Java] Object-oriented summary_Part 1
[Java] Object-oriented summary_Part 2
Object-oriented (java) with Strike Gundam
Object-oriented summary by beginners (Java)
Java
Java 3 major elements (object-oriented) memorandum
Java
[Java] Object-oriented syntax --class method / argument
[Java] Object-oriented syntax-class / field / method / scope
Summary of object-oriented programming using Java
Java learning (0)
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
java (constructor)
Java array
java (override)
java (method)
Object-oriented summary
Java Day 2018
Java string
Object-oriented programming
Java static
Java serialization
java beginner 4
JAVA paid
Studying Java ―― 4
Java (set)
[Java] compareTo
Studying Java -5
java reflexes
java (interface)
Java memorandum
☾ Java / Collection
Java array
[Java] Array
Studying Java # 0
Java review
java framework
Java features
[Java] Inheritance
FastScanner Java
Java features
java beginner 3
Java memo
Java inheritance
[Java] Overload
Java basics
[Java] Annotation
java beginner