Classifying Java Keywords
Simple Classification of Java Keywords
--------------------Class - Building - Handling - Managing Tools----------------
abstract -- to define an abstract class and abstract method
extends -- Extending classes and intefaces (by another interface only )
implements -- implementing interfaces
import - import and static import
package - package declaration
-----------------Exception Handling-----------------------------
try - Exception handling
throw - throwing Exception
catch - Exception handling
assert - added by java 1.4 to Create a Mechanism for doing Pre and Post Validation methods . prevalidation on public methods shd not be done using assert
finally - used with Exception
throws - declaring exception thrown by method
-----------------Built-in Object Reference---------------------
super - calling super class constructor , super class methods , super class members
this - refence to current Object , accessable only to non-static methods and initialisers , also has a special meaning in constructors, though non inconsistent .
--------------------------Reserved for future-------------------------
strictfp -- XXX
const - XXX
goto - Reserved XXX
----------------------Modifiers------------------------------
final - modifier to represent contants
private - Access modifier
protected - Access modifier
public - access definition
synchronized - used with Multithreading
volatile - used to suggest to compilier not to Optimise this variable since this can be modified unexpectedly.
transient - specifies that the data should not be serialized
native - defining native methods
static - creating Static members for a Class
----------------------Flow control ----------------------------
while - used in loops , while and do-while
do - used with do-while loop
for - for loop
break - used with switch case and for loops
continue - used with loops to continue with next interation
switch - switch case condition
case - switch case statement
default - used with switch case
if - if condition
else - else clause of if CONDITION
return - return a value to called method
-------Operator in the sense that , they could well be functions------
instanceof - checks if Object o is an instance of class C
new - creating objects on the heap
------------------------------------Data and Data Types ---------------------
boolean - datatype
byte - datatype
char - datatype
short - datatype
int - datatype
long- datatpe
class -- toi define a class
enum - defining enumeration
interface- interface definition
float - datatype
double - datatype
void - key word which says that a ordinary method does not return anything
null -- represents a null reference
true - boolean literal
false - boolean literal
------------------------------------------
--------------------Class - Building - Handling - Managing Tools----------------
abstract -- to define an abstract class and abstract method
extends -- Extending classes and intefaces (by another interface only )
implements -- implementing interfaces
import - import and static import
package - package declaration
-----------------Exception Handling-----------------------------
try - Exception handling
throw - throwing Exception
catch - Exception handling
assert - added by java 1.4 to Create a Mechanism for doing Pre and Post Validation methods . prevalidation on public methods shd not be done using assert
finally - used with Exception
throws - declaring exception thrown by method
-----------------Built-in Object Reference---------------------
super - calling super class constructor , super class methods , super class members
this - refence to current Object , accessable only to non-static methods and initialisers , also has a special meaning in constructors, though non inconsistent .
--------------------------Reserved for future-------------------------
strictfp -- XXX
const - XXX
goto - Reserved XXX
----------------------Modifiers------------------------------
final - modifier to represent contants
private - Access modifier
protected - Access modifier
public - access definition
synchronized - used with Multithreading
volatile - used to suggest to compilier not to Optimise this variable since this can be modified unexpectedly.
transient - specifies that the data should not be serialized
native - defining native methods
static - creating Static members for a Class
----------------------Flow control ----------------------------
while - used in loops , while and do-while
do - used with do-while loop
for - for loop
break - used with switch case and for loops
continue - used with loops to continue with next interation
switch - switch case condition
case - switch case statement
default - used with switch case
if - if condition
else - else clause of if CONDITION
return - return a value to called method
-------Operator in the sense that , they could well be functions------
instanceof - checks if Object o is an instance of class C
new - creating objects on the heap
------------------------------------Data and Data Types ---------------------
boolean - datatype
byte - datatype
char - datatype
short - datatype
int - datatype
long- datatpe
class -- toi define a class
enum - defining enumeration
interface- interface definition
float - datatype
double - datatype
void - key word which says that a ordinary method does not return anything
null -- represents a null reference
true - boolean literal
false - boolean literal
------------------------------------------
0 Comments:
Post a Comment
<< Home