ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is difference between class and object?
 Question Submitted By :: Ramanareddy333
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is difference between class and object?
Answer
# 1
Class is a template(type) or blue print its state how 
objects should be and behave. eg consider a construction 
plan which is a class with this description mentioned in a 
plan we can constructs 'n' number of buildings of same type.
these buildings are consider to be an objects come under 
same type of that plan.
Object is defined as a software construct which binds data 
and logic or methods(functions)together.
 
Is This Answer Correct ?    31 Yes 7 No
Muthusenthil
 
  Re: what is difference between class and object?
Answer
# 2
Class is templet for an object.Object is an instance of a class.
 
Is This Answer Correct ?    23 Yes 5 No
Dara
 
 
 
  Re: what is difference between class and object?
Answer
# 3
OBJECT 

A software bundle of related state and behavior. Stores the 
state in fields and express its behavior through methods. 
The methods operate on an object's internal state. Object 
is a Physical reality.

CLASS

We can define a class as a blueprint from which the 
individual objects are created. Uses a new operator to 
create the instance of the class. Class is a logical 
construct.
 
Is This Answer Correct ?    17 Yes 1 No
Lolo
 
  Re: what is difference between class and object?
Answer
# 4
Hi... Class is a blue print of an object,which is non-live 
entity.
Object is instance of class,which is a live entity.

example:  Employee is a class
          Fruit is a class
but 
          DEVARATHNAM is an object
          ROSE is an object
 
Is This Answer Correct ?    8 Yes 9 No
Devarathnam C,kotagudibanda(po
 
  Re: what is difference between class and object?
Answer
# 5
class is the template for members and methods
Object is the physical reality to access the members and 
methods
 
Is This Answer Correct ?    3 Yes 7 No
Ravikiran
 
  Re: what is difference between class and object?
Answer
# 6
Actually object is an obstraction of something in a problem 
domain which reflecting the capabilities of a system to 
keep information about it.
 
Is This Answer Correct ?    5 Yes 4 No
Hamid Khan Växjö Swe
 
  Re: what is difference between class and object?
Answer
# 7
Class:
Is another kind of data type in oops like structure.
It is static in nature during program execution.

Object:
It is like variable of type class for accessing member 
variables and methods.
Objects are dynamic in nature during program execution.
Can be constructed and destroyed.
 
Is This Answer Correct ?    2 Yes 2 No
Revansiddappa P.h.
 
  Re: what is difference between class and object?
Answer
# 8
class is a blueprint/framework which has no physical 
existance and it is collection of similar properties and 
behaviour of objects.
object is nothing which has physical existance, own 
behaviour and properties.
it is also known as instance of class.
ex:Employee is a class and ram is aobject of this class.
 
Is This Answer Correct ?    3 Yes 2 No
Kabita
 
  Re: what is difference between class and object?
Answer
# 9
In an Object Oriented world, 'Human being' is a CLASS 
whereas, all of us are objects! :-)
 
Is This Answer Correct ?    0 Yes 3 No
N71423
 
  Re: what is difference between class and object?
Answer
# 10
clas is a user defined data type and object is a basic run 
time entity of class. class contain any no of object but 
object belongs to single class.
 
Is This Answer Correct ?    2 Yes 0 No
Priyanka Tayde
 
  Re: what is difference between class and object?
Answer
# 11
Class cannot be passed as a prameter or orguments,
But object can be passed as argument or parameter.
 
Is This Answer Correct ?    0 Yes 0 No
Shashank
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what do you meant by Platform-Independent? Persistent4
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one? Huawei1
If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface? Synechron6
To set the position and size of a component, which methods are used?  2
Explain Connection Pooling?  3
What is the ResourceBundle? Elementus-Technologies2
Difference between Application and Applet ? Wipro3
What are uses of Hash Code? Cognizent2
Explain the term serialization? Wipro6
What is the purpose of finalization?  3
what is a package?  8
can u override the start() method of Thread class  4
could you run the java program without main method?  1
1).what is the difference between below examples String s="vijay"; String s=new String("vijay"); TCS11
can any one tell me when do u go for inheritance and polymorphism  1
what is a transient variable?  4
waht happens when a return type ,even void is specified for a constructor?  10
Which are thin and thicK wrapper Class's in Java?  1
What is the difference between throw and throws? What is the similarity between try and throw?  2
Differentiate constructor and a method and how are it be used? Wipro5
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com