A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Core Java

  1. #1
    Junior Member
    Join Date
    Aug 2020
    Location
    USA
    Posts
    1

    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.**

  2. #2
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center