logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology See What Others Are Saying!
  • Question
  • Which of the following can derived class inherit?


  • Options
  • A. members
  • B. functions
  • C. both a & b
  • D. None of the above

  • Correct Answer
  • both a & b 


  • More questions

    • 1. Does the order of public and static declaration matter in main() method?
    • Discuss
    • 2. What is the purpose of declaring a variable as final?
    • Discuss
    • 3. I do not want my class to be inherited by any other class. What should i do?
    • Discuss
    • 4. When will you define a method as static?
    • Discuss
    • 5. How is final different from finally and finalize()?
    • Discuss
    • 6. How many of the following will follow JavaBean Listener naming rules? addListener addMouseListener deleteMouseListener removeMouseListener registerMouseListener

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 7. Keeping the actoins and attributes together under a single unit is called

    • Options
    • A. Encapsulation
    • B. Information Hiding
    • C. Polymorphism
    • D. Inheritance
    • Discuss
    • 8. By whom will the unallocated memory that is no longer needed will be cleared in java?

    • Options
    • A. Java Virtual Machine
    • B. Garebage collector
    • C. Both A and B
    • D. None
    • Discuss
    • 9. There is one default constructor in every class.

    • Options
    • A. The above statement is true
    • B. The above statement is false
    • C. Both true and false
    • D. None
    • Discuss
    • 10. Which of the following is not the other name of attriibute?

    • Options
    • A. Data member
    • B. Instance variable
    • C. instance
    • D. Data filed
    • Discuss


    Comments

    There are no comments.

Enter a new Comment