Can someone explain the difference between a Keyword and a reserved word??
Joined: Apr 21, 2000
hi, A keyword is a specially assigned word which can be used in programming like if,while,etc. whereas a reserved word is a keyword which is kept reserved so that it cannot be used during normal programming like goto,strictfp,widefp,etc. Dont worry the exam only asks u to find which are java keywords i.e. java keywords and java reserved words. hope this helps, sushant.
Joined: Jun 26, 2000
Java unitll know has 48 words which are reserved for the usage in the language syntax which are referred to has keywords and hence u cant use them as user defined variables. Java has some keywords which are untill now not used as keywords that is they r reserved for future use. They r referred to as reserved words. hence reserved words r java keywords for future reference. -mohan