Votefy
Votefy Votefy
  • 20-05-2021
  • Computers and Technology
contestada

Can you identify one syntax error and one logic error in these lines? Why do you think a programmer might have made the logic error

Respuesta :

andydavid415
andydavid415 andydavid415
  • 22-05-2021

Answer:

If there are no syntax errors, Java may detect an error while your program is running. You will get an error message telling you the kind of error, and a stack trace that tells not only where the error occurred, but also what other method or methods you were in. For example,

Exception in thread "main" java.lang.NullPointerException

       at Car.placeInCity(Car.java:25)

       at City.<init>(City.java:38)

       at City.main(City.java:49)

Explanation:

Answer Link

Otras preguntas

ten times as many as 100 is
Which word best completes the analogy? Health-related fitness is to health as skill-related fitness is to _____.
American car makers produce 5,650,000 cars each year. In a report, Ben wrote that Americans made 6,550,000 cars. What mistake did Ben make? How can he fix it? F
what is the name of the period that has the digits 913
Gandhi believed in two important concepts, non-violence and __________ disobedience
Ophelia wants to become a better swimmer, so she has decided to practice at the local pool. Which of the following is the best way for her to stay safe during h
If the sum of the mass of the reactants is 12.5 what would be the sum of the products be? And explain how you know this
what is the unit value of the 3 in 432?
how is the leaf dependent on the root and the stem
when i double me number and add ten.i get my number plus nine