logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Does the order of public and static declaration matter in main() method?


  • Correct Answer
  • No It doesn't matter but void should always come before main() 


  • Technology problems


    Search Results


    • 1. Can a main() method be declared final?
    • Discuss
    • 2. What is the argument of main() method?
    • Discuss
    • 3. What is the return type of the main() method?
    • Discuss
    • 4. Why is the main() method declared static?
    • Discuss
    • 5. Are arrays primitive data types?
    • Discuss
    • 6. Can a source file contain more than one class declaration?
    • Discuss
    • 7. Which package is imported by default?
    • Discuss
    • 8. Can a class be declared as protected?
    • Discuss
    • 9. What is the purpose of declaring a variable as final?
    • Discuss
    • 10. I do not want my class to be inherited by any other class. What should i do?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment