Home TechnologyProgrammingJava Subscribe to RSS
 

What Is The Difference Between An Object And An Instance In Java?

Answer Question

2 Answers - Sort by: Date | Rating

    object has a memory allocated to it during its creation using the syntax
    classname var=new classname();
    But for instance creation it returns only a pointer refering to an object,syntax is
    classname varname;
    1 0

    Pai 

    answered 3 years ago

      Object is just a memory allocated to the variables of class . But at particular time the values hold by variables is the instance of that object . A single object can have more than one instance.
      0 0
      Guest

      Guest 

      answered 8 months ago

        Answer Question - Answers are editable for 5 min.

        If you do not Sign-in or Register your answers will be anonymous,

        your answers may also be checked before going online.

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International