LoginSignup
1
1

More than 5 years have passed since last update.

オブジェクト != インスタンス

Posted at

Java言語仕様では オブジェクト(object) と インスタンス(instance) は明確に区別される。

オブジェクト == インスタンス ∪ 配列

仕様上の殴り合いでもしない限り、普通の解説中で両者を区別する必要はないと思うけど。


The Java® Language Specification, Java SE 8 Edition による定義:

  • オブジェクト(object):クラスインスタンス(class instance) または 配列(array) のいずれか。
  • クラスインスタンス(class instance):クラスインスタンス生成式(class instance creation expression)(つまりnewを使った式)で生成される。
1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1