logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • In a class if private data member is declared then how to set data to that private data member?


  • Correct Answer
  • By using method The method used to set the data is called setter method 


  • Technology problems


    Search Results


    • 1. What is the differnce among public, protected and package access data?
    • Discuss
    • 2. When this. non-static datamember is compulsory inside non-static method
    • Discuss
    • 3. What is stored in the 'this' reference?
    • Discuss
    • 4. Why static method can not call non static method of the same class?
    • Discuss
    • 5. How to assign address to the reference?
    • Discuss
    • 6. In a class if private data member is declared then how to get value of that data member?
    • Discuss
    • 7. What is difference between methods and blocks?
    • Discuss
    • 8. What is Constructor?
    • Discuss
    • 9. How to call argument constructor?
    • Discuss
    • 10. What is different among String, StringBuffer, StringBuilder?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment