logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • I don't want my class to be inherited by any other class. What should i do?


  • Correct Answer
  • You should declared your class as final But you can't define your class as final, if it is an abstract class A class declared as final can't be extended by any other class 


  • Technology problems


    Search Results


    • 1. main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 2. The keyword which indicates that a method can be accessed by only one thread at a time is

    • Options
    • A. Strictfp
    • B. Synchronized
    • C. New
    • D. None
    • Discuss
    • 3. What are the advantages of LINQ ?
    • Discuss
    • 4. What is LINQ ?
    • Discuss
    • 5. Difference between clustering and mirroring .
    • Discuss
    • 6. What is an error-first callback ?
    • Discuss
    • 7. Does not overriding hashcode() method has any performance implication ?
    • Discuss
    • 8. Which of the following is not a keyword?

    • Options
    • A. assert
    • B. pass
    • C. eval
    • D. nonlocal
    • Discuss
    • 9. Which of the following statements about inheritance is false?

    • Options
    • A. Inheritance allows you to minimize the amount of duplicate code in an application by sharing common code among several subclasses.
    • B. A subclass inherits all the members (fields, methods, and nested classes) from its superclass.
    • C. Through inheritance, a parent class is a more specialized form of the child class.
    • D. Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.
    • Discuss
    • 10. What is latest iOS version?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment