Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me what is the meaning of instance in Java? And what is the difference between object and instance?

1 Answer

0 votes
by (26.7k points)

Basically, object and instance are the same things. We can use the name as an instance to specify the objects of type Foo. But for general talking about objects, we called as objects. Example of instance if you want something like this:

Foo foo = new Foo();

I hope this will help.

Want to know more about Java? Prefer this tutorial on Java Tutorial.

Want to become a Java Expert? Join Java Training now!!

Related questions

Browse Categories

...