1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
musickatia [10]
3 years ago
14

Suppose you define a java class as follows: public class test { } in order to compile this program, the source code should be st

ored in a file named ________.
Computers and Technology
1 answer:
likoan [24]3 years ago
5 0
Test.java

The classname and the filename need to match (case sensitive).
You might be interested in
Code example 5-1 import java.util.Scanner; import java.text.NumberFormat; public class WeightConverter { public static void main
Trava [24]

Answer:

It displays an error message from the getDouble() method

Explanation:

The above would be the result because of the following

1. Variable d is declared as a double variable and should be used as such.

2. The getDouble() method is also defined to handle double variables only.

When the program tries to accept at

weightInPounds = getDouble(sc, prompt);

The getDouble method is called immediately and since the value

"two hundred" entered in string, it can't handle this data type and it (the getDouble method) will display an error message

4 0
4 years ago
What Is database as used in computer science​
Natalija [7]

Answer:

A database is an organized collection of structured information, or data, typically stored electronically in a computer system.

8 0
3 years ago
If (x > 5 AND x <= 10): print (OK)
amid [387]

Answer:

If (x > 5 AND x <= 10): print (OK)

This is in Python, and there are errors.

Explanation:

Variable x is not defined. And OK should be within inverted commas and AND should be in lower case, like as below:

x=int(input("Enter X:"))

if (x>5 and x <=10?): print("OK")

If now x is between 5 and 10 or 10, then the output will be OK. or else it might return some exception value as that case is not definitely in try-catch. Always ensure that you have output defined for each case.

4 0
3 years ago
Why is hydroelectricity counted as a conventional source of energy.. People say conventional sources of energy is the same as no
vovangra [49]
People have been using the energy of flowing or falling water for centuries before electricity was developed into a practical means of transporting energy. The first hydroelectric plant (at least in the U.S.) was built at Niagara Falls in 1895. Many areas of the world still get the majority of their power from hydro facilities.

Hydro is also “conventional” in the sense that it can be controlled in more or less the same way as thermal plants — its output can be adjusted over a wide range to match demand. Wind and solar, on the other hand, only produce when the wind blows or the sun shines. Of course, hydro can only produce as long as there’s rain or snowmelt to supply the reservoirs, but that’s on a much longer time scale; over hours or days, hydro capacity is very predictable.
8 0
3 years ago
Carmen printed her PowerPoint presentation at home. Her mom was angry because Carmen used 20 pieces of paper and all the color i
Margaret [11]

Answer:

She used 1 sided and color

Explanation:

those are the options she used

6 0
3 years ago
Other questions:
  • Why are open standards important in the data communications industry?
    5·1 answer
  • What should I do when the computer doesn't display Korean?(They are all □□)
    6·1 answer
  • Which of the following can you use to attach external hardware devices to a computer?
    11·2 answers
  • You're programming an infinite loop. What must you include in your code to prevent crashes?
    15·2 answers
  • Which is the correct process for attaching a file?
    12·1 answer
  • When a security administrator wants to conduct regular test on the strength of user passwords, what may be the best setup for th
    15·1 answer
  • Pls tell me the answer pls i need the answer
    6·2 answers
  • Which type of error occurred in the following lines of code?
    13·1 answer
  • Company A has a project plan for a new product under development. The product will be one of many released in the coming year. T
    5·1 answer
  • Identify the network and the host address in the ip address of 12.128.120.131 with a subnet mask of 255.128.0.0.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!