[Solved] Can I put a main method in java android [closed]


The main() method in java acts as an entry point for the program. In android however there are different methods to define entry points. Such as onCreate() for Activities and onCreateView() for fragments. So you do not need to have any main() method in android.

2

solved Can I put a main method in java android [closed]