What is the difference between Object and Instance?

Answer Posted / nagarjuna

Object is the creating memory location by using new operator
Instance is the creating the reference.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you have two constructors in java?

578


What is private public protected in java?

681


Can we declare array without size in java?

633


Detail discussions on JVM, memory management and garbage collector.

635


How do I get a substring?

629






What are controls and their different types in awt?

677


How to access arraylist elements in java?

573


How do you use wildcards?

618


Why does java not support pointers?

651


If we don’t want some of the fields not to serialize how to do that?

651


What is covariant return type?

729


What is pass by value?

594


Can a hashset contain duplicates java?

581


What is return data type?

652


What is a static class in java?

631