Shared Flashcard Set

Details

Java Programming key words
key words found when writing java see here: http://en.wikipedia.org/wiki/List_of_Java_keywords
6
Language - Other
Graduate
09/15/2013

Additional Language - Other Flashcards

 


 

Cards

Term
abstract
Definition
The abstract keyword is used to declare a class or method to be abstract[3]. An abstract method has no implementation; all classes containing abstract methods must themselves be abstract, although not all abstract classes have abstract methods. Objects of a class which is abstract cannot be instantiated, but can be extended by other classes. All subclasses of an abstract class must either provide implementations for all abstract methods, or must also be abstract.[4]
Term
assert
Definition
The assert keyword, which was added in J2SE 1.4[2][1], is used to make an assertion—a 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, an AssertionError is thrown and the program terminates. This keyword is intended to aid in debugging[5][6].
Term
boolean
Definition
The boolean keyword is used to declare a field that can store a boolean value; that is, either true or false[7][8]. This keyword is also used to declare that a method returns a value of the primitive type boolean[9][3].
Term
break
Definition
Used to resume program execution at the statement immediately following the current enclosing block or statement. If followed by a label, the program resumes execution at the statement immediately following the enclosing labeled statement or block.
Term
byte
Definition
The byte keyword is used to declare a field that can store an 8-bit signed two's complement integer.[7][8] This keyword is also used to declare that a method returns a value of the primitive type byte[9][3].
Term
case
Definition
The case keyword is used to create individual cases in a switch statement; see switch[10][11].
Supporting users have an ad free experience!