logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the return type of the main() method?


  • Correct Answer
  • Main() method doesn't return anything hence declared void 


  • Technology problems


    Search Results


    • 1. Why is the main() method declared static?
    • Discuss
    • 2. Are arrays primitive data types?
    • Discuss
    • 3. Does Java support multiple inheritance?
    • Discuss
    • 4. What are instance variables?
    • Discuss
    • 5. What do you mean by platform independence?
    • Discuss
    • 6. What is the argument of main() method?
    • Discuss
    • 7. Can a main() method be declared final?
    • Discuss
    • 8. Does the order of public and static declaration matter in main() method?
    • Discuss
    • 9. Can a source file contain more than one class declaration?
    • Discuss
    • 10. Which package is imported by default?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment