-->
当前位置:首页 > 题库 > 正文内容

Multiple choice:Given code below:

Luz3年前 (2021-05-10)题库522
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.


answer:C

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。