Why does Java use -D to indicate system properties?

后端 未结 2 941
野性不改
野性不改 2021-01-04 09:28

Why is the flag that indicates a System property in Java -D? Surely there is some semantics to this letter choice, but I can\'t guess what it is.

2条回答
  •  孤街浪徒
    2021-01-04 10:17

    "defines" properties. Properties aren't arguments, so you'd need a special identifier anyway.

提交回复
热议问题