what is the diffrence between class and object?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / sri
the exitance of class is logical.but obj exitance is phisical
Is This Answer Correct ? | 0 Yes | 1 No |
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 |
Where are local variables stored?
What is the lifetime and scope of a variable?
How do you sort a set in java?
Explain the differences between abstraction and encapsulation?
Which class represents the socket that both the client and server use to communicate with each other?
what is java
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
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?
What do you mean by constant time complexity?
What is the main functionality of the remote reference layer?
What is the difference between jdk, jre, and jvm?
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"); } } }