+ 14

Difference between object and instance in java?

11th Sep 2019, 5:07 PM
Crystal!!!😎
Crystal!!!😎 - avatar
4 Réponses
+ 7
Instance is a specific representation whereas object represent a set of instance
12th Sep 2019, 6:35 AM
Avanthika Narayanan
Avanthika Narayanan - avatar
+ 2
Object represents a set of instances.But an instance represents the specific representation. For an example if we take living beings on the earth as a class.human is an object.But you and me are instances for human.
12th Sep 2019, 7:10 AM
Yaduska Thambiaiyah
Yaduska Thambiaiyah - avatar
+ 1
They are the same. If you create an e object from class, it’s called instantiation.
20th Sep 2019, 12:50 PM
Arnon Songmoolnak
Arnon Songmoolnak - avatar