- 主题:Notice that source files should be arranged in a directory
javac [options] [source-files]
阅读javac的文章,看到这句话
All options are indeed entirely optional. Source files can be directly specified as arguments to the javac command or kept in a referenced argument file as described later.
Notice that source files should be arranged in a directory hierarchy corresponding to the fully qualified names of the types they contain.
所有的选项都是optional,源文件可以直接作为javac命令的参数。 注意,源文件应该层次组织, corresponding to , the fully qualified names of the types they contain.
后面的不理解,the names of types they contain. type指的是什么type? they是指的source file吧,它 有什么type?
求解惑,谢谢
原文:
https://www.baeldung.com/javac
--
FROM 223.166.167.*
There are two types of data types in Java:
Primitive data types: The primitive data types include boolean, char, byte, short, int, long, float and double.
Non-primitive data types: The non-primitive data types include Classes, Interfaces, and Arrays.
【 在 tortelee 的大作中提到: 】
: javac [options] [source-files]
: 阅读javac的文章,看到这句话
: All options are indeed entirely optional. Source files can be directly specified as arguments to the javac command or kept in a referenced argument file as described later.
: ...................
--
FROM 223.166.167.*
String.java contains a type named String
【 在 tortelee (hust-wh) 的大作中提到: 】
: javac [options] [source-files]
: 阅读javac的文章,看到这句话
: All options are indeed entirely optional. Source files can be directly specified as arguments to the javac command or kept in a referenced argument file as described later.
: ...................
--
FROM 211.97.123.*
就是告诉你文件名和class name一致
我是这么理解的
【 在 tortelee (hust-wh) 的大作中提到: 】
: javac [options] [source-files]
: 阅读javac的文章,看到这句话
: All options are indeed entirely optional. Source files can be directly specified as arguments to the javac command or kept in a referenced argument file as described later.
: ...................
--
FROM 114.248.217.116