OOP module 7 Flashcards
A _____________ stores a reference (or address) to the memory location where the corresponding data is stored.
reference type
_________ are the basic types and include byte, short, int, long, float, double, boolean, and char.
Value types
The ___ defines a number of useful classes, one of them being Math class, which provides predefined methods for mathematical operations.
JDK
Use the _____ keyword to mark a variable constant so that it can be assigned only once
final
_________ takes two (2) parameters and returns the first parameter raised to the power of the second parameter.
Math.pow()
Conversely, _______ returns the smallest parameter.
Math.min()
Similarly, _______ rounds a floating point value down to the nearest integer value.
Math.floor()
_________ rounds a floating point value up to the nearest integer value. The rounded value is
returned as a double.
Math.ceil()
________ returns the absolute value of its parameter
Math.abs()
__ is now a constant. Any attempt to assign it a value will cause an error
PI