Question: Describe each error and specify whether it is (a) lexical, (b) syntactic, or (c) semantic. Use the numbers shown to identify the line on which
Describe each error and specify whether it is (a) lexical, (b) syntactic, or (c) semantic.
Use the numbers shown to identify the line on which each error occurs.
The class may also contain programming errors that do not violate the rules of Java and will not be detected by a Java compiler.
You should ignore these errors.

1. class Thermometer 2. private int temperature 3. public Thermometer (int degrees) temperature degrees 6. public Thermometer temperature 0.0 9. public void makewarmer (int degrees) f temperature degrees; 10 12 public void makeCooler (int degrees) temperature degrees 13 14 15 public get Temperature f 16. return temperature 17 18. public string tostring return temperature degrees 19 20 21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
