206k views
0 votes
. If you have written the following source code:

public class SpringBreakâ¨{⨠// lots of code hereâ¨}

then your source code should be saved in a file named _______________

1 Answer

3 votes

Answer:

SpringBreak.java

Step-by-step explanation:

Java classes are saved in files having the same name as the class name.

So if the given class structure is:

public class SpringBreak{

// lots of code here

}

It needs to be saved in a file called SpringBreak.java.

The physical file should follow the package structure as provided in the class.

The java file will be compiled by the java compiler to generate the corresponding class file.

User Ziumin
by
6.0k points