logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the syntax to create the object?


  • Correct Answer
  • new ClassName(); This expression creates object in heap area and returns that obj address Here JVM creates object but JVM does not returns object original address JVM returns duplicate address, duplicate address is also called as hashcode 


  • Technology problems


    Search Results


    • 1. What is anonymous class?
    • Discuss
    • 2. What is local class?
    • Discuss
    • 3. what is non-static member class?
    • Discuss
    • 4. What is static member class?
    • Discuss
    • 5. What is top level class?
    • Discuss
    • 6. How to assign address to the reference?
    • Discuss
    • 7. Why static method can not call non static method of the same class?
    • Discuss
    • 8. What is stored in the 'this' reference?
    • Discuss
    • 9. When this. non-static datamember is compulsory inside non-static method
    • Discuss
    • 10. What is the differnce among public, protected and package access data?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment