What is difference between an object and a class?



What is difference between an object and a class?..

Answer / Mukesh Kumar Anil

An Object is an instance of a Class. A Class is a blueprint or template for creating objects. In Java, a class defines a new data type. An object is created by invoking the class constructor using 'new' keyword.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How a string is stored in memory?

1 Answers  


How an object is serialized in java?

1 Answers  


Enlist diffrent types of inheritance supported by java?

1 Answers  


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

1 Answers  


What is the purpose of file class?

1 Answers  


What is a constructor overloading in java?

0 Answers  


Can I overload to string method

1 Answers   UHG,


when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?

6 Answers  


What is the final keyword in java?

2 Answers  


What happens if main method is not static?

1 Answers  


What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?

2 Answers  


Is a string literal?

1 Answers  


Categories