java类和jar之间的区别 [英] Difference between java class and jar

查看:104
本文介绍了java类和jar之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个java类文件和一个jar文件有什么区别?

What is the difference between a java class file and a jar file?

推荐答案

Jar文件是一个Zip文件一个或多个java类文件。这使得库(由多个类组成)的使用更加方便。将目录和Jar文件添加到类路径中,并在运行时可以通过 ClassLoader 查找其中的特定类。

A Jar file is an Zip archive containing one or multilple java class files. This makes the usage of libraries (consisting of multiple classes) more handy. Directories and Jar files are added to the classpath and available to the ClassLoader at runtime to find particular classes inside of it.

这篇关于java类和jar之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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