What is the difference between Object and Instance?

Answer Posted / titupathirao

For example, if I declare a class like

Animal a=new Animal();

Is variable 'a' in above is an instance which has an object of Animal type?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between length and length() method in java ?

551


What is primitive array?

513


Why do we need wrapper class?

534


What are advantages of exception handling in java?

576


What is a superclass?

920






What is difference between == equals () and compareto () method?

528


What does replaceall do in java?

480


Explain Basics of OOP Language in java

584


What does jre stand for?

600


What is java ceil?

566


What is the constructor?

572


What an i/o filter in java programming?

596


Explain the inheritance?

570


What is a container in a gui?

539


Can we create our own daemon thread?

534