What's the difference between program arguments and VM arguments?

前端 未结 5 1953
忘了有多久
忘了有多久 2021-01-31 03:15

I found only when I put -Dcontext=web into VM arguments, the value can be read by System.getproperty method. I am wondering what\'s the difference betw

5条回答
  •  难免孤独
    2021-01-31 03:36

    Program arguments go into main() method:

    public static void main(String[] args) // here
    

提交回复
热议问题