what is difference between class and object?
Answer Posted / maurya
class is a totally logical perseption while we r making a
class we think only WHAT and HOW. but an object is fully
physical perseption when we create an object we get th
physical entity of class. object has its existance but a
class dont.
through WHAT of a class we define state ie. what should be
in my object and through HOW we define behavior of object
ie. how and what function perform on my object to change
its behavior.
an object is actually type of class.....!!
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Can finally block be used without a catch?
What is collections framework?
Why set do not allow duplicates in java?
What are the main uses of java?
Why we do exception handling in java and how many types of exceptions are there?
Why do I need to declare the type of a variable in java?
What are the different types of inheritance in java?
Can a constructor be private and how are this() and super() method used with constructor?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
How dead lock situation occurs in java and how you can identify it?
What does the @override annotation do?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is length in java?
What is independent and dependent variables in research?
Why 1 is not a prime number?