what is difference between class and object?
Answer Posted / revansiddappa p.h.
Class:
Is another kind of data type in oops like structure.
It is static in nature during program execution.
Object:
It is like variable of type class for accessing member
variables and methods.
Objects are dynamic in nature during program execution.
Can be constructed and destroyed.
Is This Answer Correct ? | 44 Yes | 14 No |
Post New Answer View All Answers
What is a numeric literal?
What is null in java?
What is a condition in java?
Why do we need hashset in java?
Can a class have multiple subclasses?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Difference between method overloading and overriding.
How variables are declared?
Which is easier netbeans or eclipse?
What are green threads in java?
If an object is garbage collected, can it become reachable again?
Write a program to print 15 random numbers using foreach of java 8?
How we can run a jar file through command prompt in java?
what is object slice?
What are examples of modifiers?