Karteikarten
Java Theory and Debugging

Karten in diesem Stapel (10)
- 1what's a Java program?or "application",
a Java class that has a main method
- 2what's a compiler? a Java compiler?a program that translates a higher level language into a lower level language
program that translates a Java source file into a Java class file. The latter is byte code. - 3what's a compiler error? what happens if there is one?aka "syntax error"
If a program has invalid syntax, then the compiler reports an error.
then the compiler does not produce a .class file. You need to edit your code. - 4what's the Java Virtual Machine (JVM)?The JVM interprets the byte code, translating it into machine code instructions that run on the physical computer.
- 5what's the Java Runtime Environment (JRE)?

- 6what's the Java Development Kit (JDK)?includes the Java compiler and debugging tools and the JRE
- 7what's the Java documentation (API)?part of the JDK
"Application Programming Interface"
defines all classes in the standard library. - 8name the 3 kinds of errorscompiler/syntax errors
runtime errors
logic errors - 9what's a runtime error?Java "exceptions"
the program does not finish executing (it crashes)
e.g. ArrayIndexOutOfBoundsException, NullPointerException - 10what's a logic error?the program runs, but the result is incorrect
Informationen
- Beschreibung
- Computer Science Karteikarten am Java Theory and Debugging, erstellt von Virginie Gagné am 17/04/2022.
- Erstellt von
- Virginie Gagné
- Aufrufe
- 0
- Bewertung