logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Can a main() method be declared final?


  • Correct Answer
  • Yes Any inheriting class will not be able to have it's own default main() method 


  • Technology problems


    Search Results


    • 1. What is the argument of main() method?
    • Discuss
    • 2. What is the return type of the main() method?
    • Discuss
    • 3. Why is the main() method declared static?
    • Discuss
    • 4. Are arrays primitive data types?
    • Discuss
    • 5. Does Java support multiple inheritance?
    • Discuss
    • 6. Does the order of public and static declaration matter in main() method?
    • Discuss
    • 7. Can a source file contain more than one class declaration?
    • Discuss
    • 8. Which package is imported by default?
    • Discuss
    • 9. Can a class be declared as protected?
    • Discuss
    • 10. What is the purpose of declaring a variable as final?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment