Tricky Interview Question | Why Main Method in Java is Public Static Void

preview_player
Показать описание
This video explains why we need to write main method and in-detailed explanation of main() method signature.

Checkout the Playlists:
👉 Java Tutorial For Beginners:

👉 Design Patterns in Java

👉 Tricky Java Interview Questions

👉 Important Java Programs for Interview:

👉 How to Avoid Common Mistakes as a Java Beginner

👉 Interview Coding Challenges

👉 MySQL Tutorial For Beginners:

👉 What is Agile | Understanding Agile Software Development Process:

👉 Selenium with Java Tutorial For Beginners:

LIKE | SHARE | SUBSCRIBE 😊


👇👇👇
Follow me on

Photo used in Thumbnail is licensed under
Рекомендации по теме
Комментарии
Автор

I assume you created this video so that junior developers learning Java programming can learn from it. If that is the case, you should be correct, and you must not say things like "when the main method terminates, the Java program also terminates". It is not true. The JVM terminates only after all non-daemon threads are terminated. A Java code potentially can run way after the main method has terminated.

I also find it terrible to advocate the C style array declaration, which is in the language for a historical reason. Still, it is deprecated, and its use is BAD.

javax
join shbcf.ru