Java review

I'm going to use Java for the first time in a while, so I've summarized what I reviewed as a memorandum. It would be helpful if you could point out any mistakes ...

Java overview

--Developed by Sun Microsystems in the early 1990s --Sun Microsystems was acquired by Oracle in 2010 --The catch phrase is "Write Once, Run Anywhere"

Object-orientation

--Java code consists of classes, and classes consist of states (instance variables) and functions (methods).

--Inheritance

variable

ArrayList<Integer> list = new ArrayList<Integer>();
list.add(1); //Insert int type data
int i = list.get(o); //Receive as an int type variable

Access level

Garbage collection

static

exception

try {} catch(Exception e) {}

--Not recommended, but effective because it is convenient for test code etc.

try {
} catch(Cat e) {
} catch(Animal e) {

IO

thread

data structure

public void barkAll(ArrayList<Animal> user) {}

--When assigning a collection whose elements are subclass instances (using wildcards)

public void barkAll(ArrayList<? extends Animal> user) {}

Package and JAR

Recommended Posts

Java review
Java IO review
NIO.2 review of java
Review of java Shilber
Java NIO 2 review notes
Java inner class review
Java
Review Java annotations now
NIO review of java
Review java8 ~ Lambda expression ~
Java
Progate Java (Beginner) Review & Summary
Java Collections Framework Review Notes
Java learning (0)
Studying Java ―― 3
Java protected
[Java] Annotation
Rails Review 1
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
java (constructor)
Java array
[Java] ArrayDeque
java (override)
Java Day 2018
Java string
java (array)
Java static
Java serialization
java beginner 4
Ruby Review 2
JAVA paid
Studying Java ―― 4
Java (set)
java shellsort
[Java] compareTo
Studying Java -5
java (interface)
Java memorandum
☾ Java / Collection
Java array
Studying Java ―― 1
[Java] Array
[Java] Polymorphism
Studying Java # 0
java framework
Java features
[Java] Inheritance
FastScanner Java
Java features
java beginner 3
Java memo
java (encapsulation)
Java inheritance
[Java] Overload
Java basics