What exactly is a Specification?

前端 未结 4 1002
不知归路
不知归路 2021-01-31 19:00

I read or hear sentences such as:

The Java Persistence API (JPA) is a Java application programming interface specification...

or

4条回答
  •  忘了有多久
    2021-01-31 19:16

    I think the key idea here is "specification doesn't include an implementation."

    When Sun was the steward of Java, they would write specifications for features like Java EE and JPA, giving other vendors the freedom to implement as they wished. Sun would usually have an implementation of their own with which to compete, but their goal was to sell hardware. Encouraging other vendors to provide competing implementations only furthered that aim.

    Sun's specifications would come with neither code nor JARs; they were prose descriptions of how the code would work.

提交回复
热议问题