Skip to content
MySirG.Com

MySirG.Com

Learning Solutions…

Menu

  • Home
  • Competitive Coding
  • Premium
  • Join Coaching
  • Campus Prep.
    • Video Content
    • Interview Questions
      • Java Interview Questions
    • Objective Questions
    • Tech Talks
    • Exam Notice
  • Video Courses
    • Motivation and Guidance
    • English Speaking
    • Programming Languages
      • python
      • C Language
      • C++ Videos
      • Java SE (Core Java)
      • Advance Java | Java EE
      • PHP-MySQL
      • Kotlin
      • Javascript
    • Data Structure
    • DBMS
    • Building Career in Web Development
    • Android
    • Computer Fundamentals
    • WordPress
  • Prog. Examples
    • Python Programs
    • C Programs
    • CPP Programs
    • Data Structure Programs
    • Java Programs
    • PHP-MySQL Programs
    • Kotlin Programs
  • Webcast and LIVE
    • LIVE sessions
    • MySirG Webcast
  • Login

Why is the java main method static?

main method in java is static

This is neccesary because main() is called by the JVM before any objects are made. Since it is static it can be directly invoked via the class.






Why is the java main method static?
saurabhsir September 26, 2016September 26, 2016 Java Interview Questions
  • ← What is the difference between ArrayList and Vector in Java?
  • What is the default value of variable in Java? →

Quick Links

  • How to install code::blocks?

Words from students

Viewers of mysirg.com are welcome to review this website. Tell me how you good and needful this mission of teaching students for FREE in Hindi through video lectures.

Chandra Shekhar -Jaipur सर आप बहुत अच्‍छा कार्य कर रहे है मै आपके इस प्रयास से बहुत ज्‍यादा खुश हू और बहुत ज्‍यादा प्रभावित हू कि मेरे देश मे अभी भी आप जैसे अध्‍यापक हैा

Subscribe

Admission Notice

Admission Announcement
Discount offers available

Contact Us

Saurabh Shukla

Mobile: +91-9893194395
email: sshukla_manit@yahoo.com

Facebook Page: https://www.facebook.com/mysirg

Follow Me on Facebook and Twitter:

Follow @sshukla_manit

Website: www.mysirg.com

Copyright © 2025 MySirG.Com. Powered by WordPress. Theme: Spacious by ThemeGrill.
  • Mysirg Testimonials
  • About
  • About mysirg
  • About Teacher
  • Join Classroom
  • Terms and Conditions
  • Pricing
  • Refund
  • Privacy
  • Contact