what is difference between class and object?
Answer Posted / deepak
class is a collection of its instance members like
variables and method. Objects are declared in the class.
Objects are nothing but a entity which keeps the refrence.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
How to sort double array in java?
Is a string literal?
What is the default execution method in java?
What is an exception in java?
What is the difference between a synchronized method and a synchronized block?
What is the difference between equals() and == in java?
How do you read and print a string in java?
What are constants and how to create constants in java?
Can we have two main methods in a java class?
How to sort numbers in java without array?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What are the two types of exceptions in java? Which are the differences between them?
What are the different types of inheritance in java?
What are the different types of garbage collectors in java?
What is the purpose of default constructor?