what is difference between class and object?

Answer Posted / malathi

classes is a combination of member function & data member
&methods into a single unit.It is also known as data
encapsulation.
objects is a variables to the class or instance of a
class.It is also known as data abstraction.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you use this() and super() both in a constructor?

522


Is java type safe?

511


What modifiers may be used with an inner class that is a member of an outer class in java programming?

531


Explain about automatic type conversion in java?

567


What is an inner class in java?

525






What do you understand by garbage collection in Java? Can it be forced to run?

554


What is a void method?

517


Which is fastest collection in java?

564


Explain how to convert any java object into byte array.

549


What is a methodologist?

528


Explain the term virtual machine?

592


What is the do while loop syntax?

553


What is floor in java?

558


Explain the importance of finally over return statement?

608


What is getkey () in java?

575