什么话的平台和API究竟是什么意思? [英] what do the words platform and api exactly mean?

查看:188
本文介绍了什么话的平台和API究竟是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我买了一本学习Java SE 6平台。我不知道这个词是什么平台的真正意义。原因是不是只是一堆,我可以使用类。 NetBeans中的JDK 1.6节点下的库。

i've bought a book "learning the java SE 6 platform". i wonder what the word platform really means. cause isn't it just a bunch of classes that i can use. the JDK 1.6 node in Netbeans under Libraries.

什么是API? isn't它一回事平台。但犯规库平均等级与一些超等相同thing..a一堆?

And what is API? isn´t it the same thing as platform. But doesnt library mean the same thing..a bunch of classes with some superclasses and so on?

推荐答案

的术语平台用于表示的是,一个特定的范围内,被认为是一个给定的软件,服务和资源的任何集合,以便它们可以被用来作为应用软件构建块(或建设最重要的是一个更高层次的平台 - 这被认为是另一种情况下的平台)

The term "platform" is used to denote any collection of software, services and resources that, within a specific context, are considered a given so they can be used as building blocks for application software (or to build a higher level platform on top of that - something considered a platform in another context)

API是应用程序编程接口的缩写。这通常意味着可以通过为细读功能驻留在库或平台中的应用程序(你正在写的程序)被用来调用约定(函数签名等)的集合。

API is an acronym for application programming interface. This usually means the collection of calling conventions (function signatures and the like) that can be used by an application (the program you are writing) for perusing functionality residing inside a library or a platform.

API是不一样的库 - 这个词表达的接口,它仅规定你可以叫什么,以及如何表现。实现接口的实际库可以自行决定如何提供特定的功能。

An API is not the same as a library - the term Interface conveys that it only specifies what you can call, and how that behaves. The actual library that implements the interface can decide for itself how it delivers the specified functionality.

这是API的一个很好的例子是例如JDBC API - 这是Java程序与数据库通信的标准方式。每个数据库供应商都有自己的连接数据库,结合这样的数据库命令变量和协议,但JDBC API抽象一切和定义了一个共同点,就是允许所有的Java程序使用同一套功能交谈 - 理想 - 任何数据库。它是数据库供应商的工作来实际提供的驱动器,即,实现一个库,是根据该API,并且知道它是如何完成其​​任务的该特定的数据库系统。因此,在这种情况下,你有许多驱动程序库(每个供应商有他们自己的,有时是多个的),但它们都通过相同的一组由API指定的函数,类等递送它们的功能(在此情况下,在JDBC API - 见<一href=\"http://java.sun.com/j2se/1.5.0/docs/api/java/sql/package-summary.html\">http://java.sun.com/j2se/1.5.0/docs/api/java/sql/package-summary.html

A good example of an API is for example the JDBC API - this is the standard way for java programs to communicate with databases. Each database vendor has its own protocol for connecting to the database, binding variables and such to database commands, but the JDBC API abstracts all that and defines a common ground what allows all java programs to use the same set of functions to talk to - ideally - any database. It is the database vendor's job to actually provide a driver, that is, implement a library that is in accordance with the API and knows how it can fulfill its tasks for that particular database system. So in this case you have many driver libraries (each vendor has their own, sometimes multiple ones) but they all deliver their functionality through the same set of functions, classes etc. specified by the API (in this case, the JDBC API - see http://java.sun.com/j2se/1.5.0/docs/api/java/sql/package-summary.html

有时候,API是如此广泛,它被认为是一个平台,但是术语平台是更普遍的,平台不需要的API。例如,标准的UNIX实用工具,比如LS,grep的收集,CD等,可以被认为是一个平台,但没有这么多的API。

Sometimes, an API is so extensive that it is considered a platform, but the term platform is more general, a platform does not need to be an API. For example, the collection of standard UNIX utilities like ls, grep, cd etc. can be considered a platform, but not so much an API.

这篇关于什么话的平台和API究竟是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆