Hello! I have my first java software oral exam coming up soon and will be asked questions and evaluated regarding this Metric Conversions (attached). Basically, I need help understanding the program in terms of the java language.
I need guidance and an explanation of how this code works and USE JAVA TERMS/LANGUAGE to explain this code (“______ is a reference that points to an object from class ______”, “this _____ object is created in order to call the _____ constructor in order to….”, “this variable is declared final because so….”, “this variable is declared as local because…”, etc.).
————————————————————————————————————————————————————————-Possible questions I could be asked:
– Definitions of the Java terms shown in the program
– Why did they choose to use this data structure/control structure etc…? (EX: Why did they decide to an if-else loop/switch statement structure/do-while loop for this part?)
– What is happening in this structure? (EX: what is happening in public static double convert(String fromUnit, String toUnit, double value)
)
– Instead of this structure, how would you change this program to also do …?
– What could you have done differently with this program to execute the same output? (EX: instead of this do-while structure, what could you have also done?, Instead of this switch-structure, what could you also have done?, etc.)
– What would happen if you made the following change?