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
a. Test.class
b. Test.doc
c. Test.txt
d. Test.java
e. Any name with extension .java


d. Test.java

Computer Science & Information Technology

You might also like to view...

When an argument is passed _________ , a copy of the argument’s value is made and passed to the called method.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The Add method of the Commands property _____.

a) adds a new command to the command list b) joins two commands together c) displays the Commands pop-up window d) Both a and c.

Computer Science & Information Technology

The methods in a subclass can use all of the data fields and methods that belong to its parent, with one exception: ____ members of the parent class are not accessible within a child class's methods.

A. private B. public C. final D. protected

Computer Science & Information Technology

TCP communication could be likened to which of the following?

a. Announcement over a loudspeaker b. Bullhorn at a sporting event c. Internet traffic d. Phone conversation

Computer Science & Information Technology