Ask Question
28 August, 06:45

Suppose TestSimpleCircle and SimpleCircle in Listing 9.1 are in two separate files named TestSimpleCircle. java and SimpleCircle. java, respectively. What is the outcome of compiling TestsimpleCircle. java and then SimpleCircle. java?

+4
Answers (1)
  1. 28 August, 08:04
    0
    Both will compile without any error

    Explanation:

    Since there was nothing to note we assume that they have no errors in them, we compile each java file by typing javac "name of file. java", javac TestsimpleCircle. java in the case of TestsimpleCircle file, and later go on to type java TestsimpleCircle to see the output. Java files can be compiled either in the console (as done above) or in the development environment like Netbeans where you click the run button and it compiles and run the program for you.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Suppose TestSimpleCircle and SimpleCircle in Listing 9.1 are in two separate files named TestSimpleCircle. java and SimpleCircle. java, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers