I have a question that might seem funny but I am a beginner in this field so I want to ask that if I have created more than one java file, can I compile and create an extension from both those files?
Yeah you can do it, ,the extension compiler will automatically compile codes if the package of other codes is same as the extension code
For example if the package of your extension is com.akshatrana
Then it should be same in other classes you want to compile with it
or the other way to compile many java files and use is it with the extension is to compile a jar library for it