what is the diffrence between class and object?

Answers were Sorted based on User's Feedback



what is the diffrence between class and object?..

Answer / sri

class is a collection of data members nd member funs()
object is an instance of a class

Is This Answer Correct ?    21 Yes 0 No

what is the diffrence between class and object?..

Answer / saravana kumar.s

class is a template for attribute and operation of an objects.
object is a instance of class .
object is use to calling class

Is This Answer Correct ?    5 Yes 1 No

what is the diffrence between class and object?..

Answer / karthick

Class -collection of object is known as class.
object-object is a instance to call a class.

Is This Answer Correct ?    4 Yes 0 No

what is the diffrence between class and object?..

Answer / sri

the exitance of class is logical.but obj exitance is phisical

Is This Answer Correct ?    0 Yes 1 No

what is the diffrence between class and object?..

Answer / 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

More Core Java Interview Questions

Where are local variables stored?

0 Answers  


What is the lifetime and scope of a variable?

0 Answers  


How do you sort a set in java?

0 Answers  


Explain the differences between abstraction and encapsulation?

0 Answers  


Which class represents the socket that both the client and server use to communicate with each other?

0 Answers  






what is java

3 Answers   Tech Mahindra,


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

0 Answers  


suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?

3 Answers  


What do you mean by constant time complexity?

0 Answers   Amazon,


What is the main functionality of the remote reference layer?

0 Answers  


What is the difference between jdk, jre, and jvm?

0 Answers  


How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


Categories