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

Explain what do you mean by functional overloading in java?

651


What is a instance variable in java?

651


Is it possible to compare various strings with the help of == operator? What are the risks involved?

717


Is the milky way in a void?

634


What is the difference between choice and list?

685






Can string be considered as a keyword?

678


What is array list in java?

680


When should I use singleton?

617


Is 0 an irrational number?

687


What is a memory leak in java?

644


How do you escape sequences in java?

677


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1694


What is the functionality of the stub?

667


What are exception handling keywords in java?

699


In Java list the methods that can be overridden?

667