“包"和“包"有什么区别?和“模块"? [英] What's the difference between "package" and "module"?

查看:29
本文介绍了“包"和“包"有什么区别?和“模块"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在只有包的地方使用 Java.我知道还有其他编程语言也包含模块.

I use Java where we only have packages. I know there are other programming languages that also include modules.

有什么区别?

推荐答案

很难在虚无中比较语义.(您指的是哪些其他语言?)模块"可能类似于 Java 类、Java 包或其他完全不同的东西,具体取决于其他语言.通常,因为模块"往往来自过程语言,所以我倾向于说 Java 类,但我认为此时界线非常模糊,你可以很有说服力地争论包.

It's hard to compare semantics in the void. (What other languages do you mean?) A "module" might be analogous to a Java class, or a Java package, or something else entirely, depending on that other language. Typically since "modules" tend to be from procedural languages, I'd lean toward saying Java class, but I think the line is very fuzzy at that point and you could argue package quite convincingly.

这篇关于“包"和“包"有什么区别?和“模块"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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