logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How to assign address to the reference?


  • Correct Answer
  • ClassName refName = new ClassName(); or ClassName refName; refName = new ClassName(); 


  • Technology problems


    Search Results


    • 1. What is the syntax to create the object?
    • Discuss
    • 2. What is anonymous class?
    • Discuss
    • 3. What is local class?
    • Discuss
    • 4. what is non-static member class?
    • Discuss
    • 5. What is static member class?
    • Discuss
    • 6. Why static method can not call non static method of the same class?
    • Discuss
    • 7. What is stored in the 'this' reference?
    • Discuss
    • 8. When this. non-static datamember is compulsory inside non-static method
    • Discuss
    • 9. What is the differnce among public, protected and package access data?
    • Discuss
    • 10. In a class if private data member is declared then how to set data to that private data member?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment