Itec30 Flashcards
IT ENABLES YOU TO DEFINE SUPERCLASS AND SUBCLASSES
INHERITANCE
THIS METHOD RETURNS A STRING REPRESENTATION OF THE OBJECT
TO STRING()
IT IS A TYPE THAT DEFINED BY A SUBCLASS
SUBTYPE
IT IS A TYPE THAT DEFINED BY A SUPERCLASS
SUPERTYPE
IT MEANS THAT A VARIABLE OF A SUPERTYPE CAN REFER TO A SUBTYPE OBJECT.
POLYMORPHISM
It can also be used to convert an object of one class to another within an inheritance hierarchy.
CASTING
It can be used to test whether an object is an instance of a class.
INSTANCE OF OPERATOR
It is another method that defined in the object class that often used.
EQUAL METHOD
It is a modifier can be applied on a data and methods in a class.
PROTECTED MODIFIER
It is a modifier that indicates that a class is cannot be a parent class
FINAL MODIFIER
It is an object that represents an error or a condition that prevents execution from proceeding normally.
EXCEPTION
It is thrown if you access an object through a reference variable before an object is assigned to it.
NullPointerException
It is thrown if you access an element in array outside the bounds of array.
IndexOutOfBoundsException
Every method must state the types of checked exceptions it might throw. This is known as .
DECLARING EXCEPTIONS
When the program detects an error, the program can create an instance of an appropriate exception type and throw it. This is known as .
THROWING EXCEPTION
It is declared using the new Java keyword assert in JDK 1.4
ASSERTION
It is intended to provide an abstraction that deals with most of machine-dependent complexities of files a path names in a machine-independent fashion.
FILE CLASS
The directory separator for Windows is a .
BACKSLASH
It is the Java directory separator.
FORWARDSLASH
It is in relation to the current working directory.
RELATIVE FILE NAME
T OR F
Every class in Java is descended from the java.lang.Object class.
TRUE