CMSC 131 Final Exam(Complete solutions)
Overriding correct answers When you create a method that already exists in a parent class, the new class overrides this class Overloading correct answers Having methods with the same name but different parameters so Java knows which one to use. @Override correct answers A hint to Java that you are overriding the superclass Java extends correct answers extends a class to another class Java implements correct answers implements an interface Program development correct answers Understand Represent Desk Check Implement Test/Debug Java programming language correct answers Object oriented Portable between machines because it is compiled into Java bytecode Run on a virtual computer called the Java Virtual Machine Block comments format correct answers /* ...*/ Compile Time errors correct answers Caught before running Syntax errors Type Errors (Misuse of variables) Valid variable names correct answers Starts with: Letter, $, or _ Contains: Letters, $, _ or digits Primitive data types correct answers Byte Short Int long float double boolean char Semantic errors correct answers Logic errors Do while is always correct answers executed at least once
Document information
- Uploaded on
- May 28, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers