I was running a Java class that extends Applet implements Runnable
and apparently the program can run, but there is no main
method. I thought Java applications needs the main
method as its entry point?
Java Applets have an init method instead of main. It's:
public void init() {... }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With