logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Why interface data is public?


  • Correct Answer
  • to access non-public data outside class getter methods be defined but we cannot define a method inside interface we can declared a method inside interface 


  • Technology problems


    Search Results


    • 1. Why interface data is final?
    • Discuss
    • 2. Why interface data is static?
    • Discuss
    • 3. What is abstract method?
    • Discuss
    • 4. why protected modifier?
    • Discuss
    • 5. What is the use of tostring() method?
    • Discuss
    • 6. How to create a file on the hard disk by using File class object?
    • Discuss
    • 7. How to create Directory on the HD?
    • Discuss
    • 8. How to check that the file object is pointing a file on HD?
    • Discuss
    • 9. How to check that whether the file object is pointing a folder or not?
    • Discuss
    • 10. How to get last modified date of a file?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment