



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




definition:declares a variable as a primitive data type that only allows integer, numerical valuesEx: private int. age; TERM 2
DEFINITION 2 definition:used to declare a class or method to beabstract.[3]An abstract method has no implementation; all classes containing abstract methods must themselves be abstract, although not all abstract classes have abstract methods.Objectsof a class which is abstract cannot beinstantiated, but can beextendedby other classes. Allsubclassesof an abstract class must either provide implementations for all abstract methods, or must also be abstract TERM 3
DEFINITION 3 used to make anassertiona statement which the programmer believes is always true at that point in the program. If assertions are enabled when the program is run and it turns out that an assertion is false, anAssertionErroris thrown and the program terminates. This keyword is intended to aid indebugging TERM 4
DEFINITION 4 used to declare a field that can store a boolean value that is either true or false. also can be used to declare a method that returns a primitive type boolean TERM 5
DEFINITION 5 used to resume program execution at the statement immediately following the current enclosing block statement. If followed by a label, the program resumes execution at the statement immediately following the enclosing labeled statement or block
used to declare a field that can store an 8-bit signed two's compliment integer. also used to declare a method of primitive type byte TERM 7
DEFINITION 7 used to create individual cases in a switch statement TERM 8
DEFINITION 8 Defines anexception handlera group of statements that are executed if an exception is thrown in the block defined by a precedingtrykeyword. The code is executed only if the class of the thrown exception is assignment compatible with the exception class declared by thecatchclause. TERM 9
DEFINITION 9 Thecharkeyword is used to declare a field that can store a 16-bitUnicodecharacter.[7][8]This keyword is also used to declare that a method returns a value of the primitive typechar TERM 10
DEFINITION 10 A type that defines the implementation of a particular kind of object. A class definition definesinstanceand class fields,methods, andinner classesas well as specifying theinterfacesthe class implements and the immediatesuperclassof the class. If the superclass is not explicitly specified, the superclass is implicitlyObject
Theelsekeyword is used in conjunction withifto create anif- else statement, which tests aboolean expression; if the expression evaluates totrue, the block of statements associated with theifare evaluated; if it evaluates tofalse, the block of statements associated with theelseare evaluated TERM 17
DEFINITION 17 A Java keyword used to declare anenumerated type. Enumerations extend the base classEnum TERM 18
DEFINITION 18 Used in a class declaration to specify the superclass; used in an interface declaration to specify one or more superinterfaces. Class X extends class Y to add functionality, either by adding fields or methods to class Y, or by overriding methods of class Y. An interface Z extends one or more interfaces by adding methods. Class X is said to be a subclass of class Y; Interface Z is said to be a subinterface of the interfaces it extends.Also used to specify an upper bound on a type parameter in Generics. TERM 19
DEFINITION 19 Define an entity once that cannot be changed nor derived from later. More specifically: a final class cannot be subclassed, a final method cannot be overridden, and a final variable can occur at most once as a left-hand expression. All methods in a final class are implicitlyfinal. TERM 20
DEFINITION 20 Used to define a block of statements for a block defined previously by thetrykeyword. Thefinallyblock is executed after execution exits thetryblock and any associatedcatchclauses regardless of whether an exception was thrown or caught, or execution left method in the middle of thetryorcatchblocks using thereturnkeyword.
Thefloatkeyword is used to declare a field that can hold a 32- bitsingle precisionIEEE 754 floating-point number.[7][8]This keyword is also used to declare that a method returns a value of the primitive typefloat TERM 22
DEFINITION 22 Theforkeyword is used to create afor loop, which specifies a variable initialization, aboolean expression, and an incrementation. The variable initialization is performed first, and then the boolean expression is evaluated. If the expression evaluates totrue, the block of statements associated with the loop are executed, and then the incrementation is performed. The boolean expression is then evaluated again; this continues until the expression evaluates tofalse TERM 23
DEFINITION 23 Although reserved as a keyword in Java,gotois not used and has no function TERM 24
DEFINITION 24 Theifkeyword is used to create anif statement, which tests aboolean expression; if the expression evaluates totrue, the block of statements associated with the if statement is executed. TERM 25
DEFINITION 25 Included in a class declaration to specify one or moreinterfacesthat are implemented by the current class. A class inherits the types and abstract methods declared by the interfaces.
Used to create an instance of a class or array object. TERM 32
DEFINITION 32 nada empty zip zilch