-
Core Java
Core Java Question: What happens if the static modifier is removed from the signature of the main() method?
**Links removed by Site Administrator so it doesn't look like you're spamming us. Please don't post them again.**
-
Client Software Programmer
say you have 2 .java files for your build. program from file 1 cannot call the main function in file 2 unless it is static.
somethings like Views cannot work in 'main' if it did say static, so you would need to modify apu level program to static as well which is alot of work. but if the apu was closed and they just gave you jars or class files to access than you cannot modify anything api level but there are more workarounds
Last edited by AS3.0; 09-30-2020 at 12:08 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|