logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Which of the following are valied?


  • Options
  • A. A class can extend any number of classes simulteneously
  • B. A class can implement only one interface at a time
  • C. A class can extend other class or can implement interface but not both simulteneously
  • D. None of the above

  • Correct Answer
  • None of the above 

    Explanation

    A is wrong because a class can extend nly one class .B is wrong because a class can implement any number of interfaces.C is wronb because both can can be done simulteneously.So, D is correct

  • Tags: IT Trainer

    Technology problems


    Search Results


    • 1. X implements Y extends Z

    • Options
    • A. X can be class Y,Z are interfaces
    • B. X is an interface Y,Z are classes
    • C. X,Y are classes Z is an interface
    • D. Complilation error
    • Discuss
    • 2. What is Marker Interface?
    • Discuss
    • 3. When is the finalize() called ? What is the purpose of finalization ?
    • Discuss
    • 4. What is the purpose of garbage collection in Java, and when is it used ?
    • Discuss
    • 5. What is the common usage of serialization? What exceptions occur during serialization?
    • Discuss
    • 6. What is a package?
    • Discuss
    • 7. What is the fastest type of JDBC driver ?
    • Discuss
    • 8. If sub class data member is hiding super class data member then how to access super class data member inside sub class methods?
    • Discuss
    • 9. How can you make sure your dependencies are safe ?
    • Discuss
    • 10. What is the difference between creating String as new() and literal ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment