Compile time vs Run time Dependency - Java

前端 未结 6 1057
野性不改
野性不改 2020-11-28 01:58

What is the difference between compile time and run time dependencies in Java? It is related to class path, but how do they differ?

6条回答
  •  执笔经年
    2020-11-28 02:32

    Java doesn't actually link anything at compile time. It only verifies the syntax using the matching classes it finds in the CLASSPATH. It's not until runtime that everything gets put together and executed based on the CLASSPATH at that time.

提交回复
热议问题