Ask Question

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?

+2
Answers (1)
  1. 4 November, 06:15
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers