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

How does the growing human population impact the Earth's natural resources?
2x-6y=6, how do you put that in slope intercept form?
According to the Proclamation of 1763 at the end of the French and Indian War?
You draw a person and you can't think of there face what do you do look a pic of the, or what
What is 5 divided by 290
Angle 1 and angle 2 are supplementary angles, and angle 1 and angle 3 are complementary angles. Given the measurement of angle 1 is 28 degrees less then angle 2
what is 5/8 minus 1/8
The ability of an organism to maintain internal stability is known as?
Which of these cultures was most likely influenced by the Anasazi civilization?
The best reason why direct democracy would not work well in the United States is that it would be impossible to get each and every citizen to vote. the nationa