what is difference between class and object?
Answer Posted / patel hemangi baldevbhai
class is collection of object.
ex:
|ob1|ob2|ob3|
object is collection of data member & member function.
ex:
| data | member |
| member | function |
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is serialversionuid?
Explain the use of javap tool.
What is java util concurrentmodificationexception?
Give the difference between the println method and sqrt method?
What is volatile keyword in java
What is a default constructor and also define copy contrucyor?
Can we pass null as argument in java?
Define how does a try statement determine which catch clause should be used to handle an exception?
why are there separate wait and sleep methods? : Java thread
What is the maximum size of a string in java?
How do you add an element to a hashset in java?
What is difference between static and abstract class?
How to run a JAR file through command prompt?
What is object in java?
What is the difference between notify and notifyall method?