what is the diffrence between class and object?

Answer Posted / arun kumar

class does not take space
eg:- empty folder have 0 byte space

object always take an space
eg:-files in folder

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When we should use serialization?

572


Why are the methods of the math class static?

593


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

704


What is balanced tree in java?

537


Tell me are there implementations for sorting and searching in the java libarary?

603






How to remove the trailing spaces from a string?

654


Can an interface have a constructor?

518


What is the program compilation process?

589


What is the size of int in 64-bit jvm?

557


Is array an object in java?

556


Can a vector contain heterogenous objects?

608


What is tochararray in java?

506


What is a pointer and does java support pointers?

562


What is a double?

593


Can you write a java class that could be used both as an applet as well as an application?

520