221k views
4 votes
Suppose you define a java class as follows: public class test { } in order to compile this program, the source code should be stored in a file named ________.

1 Answer

4 votes
test.java

The classname and the filename need to match (case sensitive).
User Aksiom
by
8.4k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.