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
Keith_Richards [23]
3 years ago
11

Consider the following code segment.

Computers and Technology
1 answer:
MAXImum [283]3 years ago
5 0

Answer:

Lines 1 and 3

Explanation:

For line 1, without putting the asterisk in single or double quote marks, the compiler will assume that the asterisk is the multiplication sign. This causes the error since no numbers are being multiplied. If an argument (in this case the asterisk) is passed into the print function, given that it is not a method, string or character, in most cases, the compiler assumes it is an arithmetic operation

For line 3, to print an empty space, you can use System.out.println(' ') or System.out.println(" "). Writing line 3 the way you did gives an error because nothing was passed in the print argument, so the compiler will not be able to identify what you are trying to print.

You might be interested in
Without any formal planning, the president of a software company remarks in a speech that new technologically advanced software
ahrayia [7]

Answer:

<em>Imposed project deadlines.</em>

Explanation:

The term of project management imposed deadline<em> refers mainly to the calendar-based dividing line used to determine a fixed time or date on which the project management team has projected and/or developed that the particular schedule of work and/or schedule of work events.</em>

6 0
4 years ago
Before you start creating a database, you should first use paper to plan, test, and revise. True False
Licemer1 [7]
<span>Before you start creating a database, you should first use paper to plan, test, and revise. True or False?
TRUE</span>
8 0
4 years ago
Read 2 more answers
Describe a psychological challenge of space travel that astronauts can face.
Anna11 [10]

Answer:

Loneliness

Explanation:

It is logical that an astronaught could be lonely up in space due to the absence of loved ones.

6 0
3 years ago
Without a/an ________. a computer is useless
Len [333]
Without a/an Operating system. a computer is useless
3 0
4 years ago
What is 1 and 3/4 in grams?
Mice21 [21]
<span> 1 and 3/4 in grams is 
</span>1.75grams
8 0
3 years ago
Read 2 more answers
Other questions:
  • How does a combustion engine works?
    7·2 answers
  • What will the scope of a compliance program depend on?
    6·1 answer
  • Which remote assistance option requires peer name resolution protocol (pnr) and ipv6?
    5·1 answer
  • Time complexity: Be sure to show your work. Suppose that a particular algorithm has time complexity T (n) = 10 ∗ 2n, and that ex
    7·1 answer
  • An administrator has several cables plugged into a patch panel and needs to determine which one comes from a specific port. Whic
    15·1 answer
  • Why did artists use pinhole cameras during the renaissance?
    9·1 answer
  • I still haven't figured out how to award someone branliest will someone help me? If you explain to me how to do it i will do awa
    14·1 answer
  • Rewrite the following program segment using a while loop instead of a for loop.
    11·1 answer
  • How many basic elements of QBASIC are there
    14·1 answer
  • When you type information into a document property field on the cover page, Word does not automatically add this information to
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!