What is the difference between Object and Instance?

Answer Posted / siva

instance means non-static variables memory location. Object means non-static variables + non-static methods memory location

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we extend private class in java?

542


What is space character in java?

565


What are instance variables?

602


why are there separate wait and sleep methods? : Java thread

571


What is the program development process?

557






What is a finally block? Is there a case when finally will not execute?

542


What are class members by default?

653


Describe the various concepts related to object oriented programming (oop).

580


Which method returns the length of a string?

562


How many bits is a string?

521


How do I get 64 bit java?

518


Can you override private or static method in java?

545


When super keyword is used?

587


What class allows you to read objects directly from a stream in java programming?

504


Explain importance of finally block in java?

576