-->
当前位置:首页 > 题库

单选题:Given code below:

Luz5年前 (2021-05-10)题库744
Given code below:
```Java
package his;
public class My {}
```
Which statement below is NOT correct? @[C](2)

A. It has to be in a file named My.java.
B. It has to be in a directory named his.
C. It can be in any file but with no any other class definitions in the same file.
D. Any non-public classes can be defined in the same source file as it is in.




A.It has to be in a file named My.java.
B.It has to be in a directory named his.
C.It can be in any file but with no any other class definitions in the same file.
D.Any non-public classes can be defined in the same source file as it is in.


答案:C