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
how many types of Inheritance?
Can we convert list to set in java?
make a method which any number and any type of argument and print sum of that arguments.....
If an application has multiple classes in it, is it okay to have a main method in more than one class?
When does an object becomes eligible for garbage collection in java?
What are the advantages and disadvantages of object cloning?
Can you create an object of an abstract class?
What is the structure of java?
What is the benefit of lambda expressions?
Are strings immutable in java?
What are "methods" and "fields"?
What is a variable in java?
How can you handle java exceptions?
Explain java coding standards for constants?
Tell me about your ability to work under pressure