+ 2
How did the methods inside the main method got executed despite the main method not being called?
Is there an invisible line of code that calls main or something like that? EDIT: Sample code: public class Program {public static void main(String[] args) {System.out.print("Hello") } } /*The program outputs "Hello", despite the main method not being called.*/
2 ответов
+ 22
where is the code ??? 🤔🤔🤔
+ 7
That's the only method called by the JVM, automatically.