logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

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


  • Correct Answer
  • By using method The method used to get the data is called getter method 


  • Technology problems


    Search Results


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


    Comments

    There are no comments.

Enter a new Comment