what is difference between class and object?
Answer Posted / bala prasad
class is a collection of methods and static& non static
variables.
Object is the super class of all classes. Object is used to
access non static members of a class.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
Is it possible to use string in the switch case?
What is object-oriented paradigm?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What is treemap in java?
Can you explain the cs option of java interpreter?
What are inner classes or non static nested classes in java?
How does enum work in java?
How to compare strings in java?
What are three ways in which a thread can enter the waiting state in java programming?
What is a null check?
What is difference between module and function?
Explain about main thread in java?
What is regex in java?
Does java linked list allow duplicates?