Next Question

Mahalo is adding a tip to all questions that don't offer a tip.
M¢25 Funded By Mahalo ? |
November 11, 2009 11:22 AM
RSS
Keywords are identifiers like public, static and class that have a special meaning inside Java source code and outside of comments and Strings. Four keywords are used in Hello World, public, static, void and class.
Keywords are reserved for their intended use and cannot be used by the programmer for variable or method names.
There are fifty reserved keywords in Java. The forty-eight that are actually used in are listed below. Don't worry if the purposes of the keywords seem a little opaque at this point. They will all be explained in much greater detail later.
Keywords Used in Java :-
boolean -:declares a boolean variable or return type
byte -:declares a byte variable or return type
char -:declares a character variable or return type
double -:declares a double variable or return type
float -:declares a floating point variable or return type
short -:declares a short integer variable or return type
void -;declare that a method does not return a value
int -:declares an integer variable or return type
long -:declares a long integer variable or return type
while -;begins a while loop
for -:begins a for loop
do -:begins a do while loop
switch -:tests for the truth of various possible cases
break -:prematurely exits a loop
continue -:prematurely return to the beginning of a loop
case -:one case in a switch statement
default -:default action for a switch statement
if -:execute statements if the condition is true
else -:signals the code to be executed if an if statement is not true
try -:attempt an operation that may throw an exception
catch -:handle an exception
finally -:declares a block of code guaranteed to be executed
class -:signals the beginning of a class definition
abstract -:declares that a class or method is abstract
extends -:specifies the class which this class is a subclass of
final -:declares that a class may not be subclassed or that a field or method may not be overridden
implements -:declares that this class implements the given interface
import -:permit access to a class or group of classes in a package
instanceof -:tests whether an object is an instanceof a class
interface -:signals the beginning of an interface definition
native -:declares that a method is implemented in native code
new -:allocates a new object
package -:defines the package in which this source code file belongs
private -:declares a method or member variable to be private
protected -:declares a class, method or member variable to be protected
public -:declares a class, method or member variable to be public
return -:returns a value from a method
static -:declares that a field or a method belongs to a class rather than an object
super -:a reference to the parent of the current object
synchronized -:Indicates that a section of code is not thread-safe
this -:a reference to the current object
throw -:throw an exception
throws -:declares the exceptions thrown by a method
transient -:This field should not be serialized
volatile -:Warns the compiler that a variable changes asynchronously
Two other keywords, const and goto, are reserved by Java but are not actually
Source(s):
http://www.examville.com
Permalink | Report
abstract
assert
boolean
break
byte
case
catch
char
class
continue
default
do
double
else
enum
extends
final
finally
float
for
if
implements
import
instanceof
int
interface
long
native
new
package
private
protected
public
return
short
static
super
switch
synchronized
this
throw
throws
transient
try
void
volatile
while
Source(s):
notes from school
Permalink | Report
Answered Question

Mahalo is adding a tip to all questions that don't offer a tip.
Basic java Programming Keywords ?
Interesting Question?
Yes (0)
No (0)
- In Programming |
- |
- Report |
-
Share
RSS
Best Answer Decided by Votes
| November 11, 2009 11:28 AM |
Keywords are reserved for their intended use and cannot be used by the programmer for variable or method names.
There are fifty reserved keywords in Java. The forty-eight that are actually used in are listed below. Don't worry if the purposes of the keywords seem a little opaque at this point. They will all be explained in much greater detail later.
Keywords Used in Java :-
boolean -:declares a boolean variable or return type
byte -:declares a byte variable or return type
char -:declares a character variable or return type
double -:declares a double variable or return type
float -:declares a floating point variable or return type
short -:declares a short integer variable or return type
void -;declare that a method does not return a value
int -:declares an integer variable or return type
long -:declares a long integer variable or return type
while -;begins a while loop
for -:begins a for loop
do -:begins a do while loop
switch -:tests for the truth of various possible cases
break -:prematurely exits a loop
continue -:prematurely return to the beginning of a loop
case -:one case in a switch statement
default -:default action for a switch statement
if -:execute statements if the condition is true
else -:signals the code to be executed if an if statement is not true
try -:attempt an operation that may throw an exception
catch -:handle an exception
finally -:declares a block of code guaranteed to be executed
class -:signals the beginning of a class definition
abstract -:declares that a class or method is abstract
extends -:specifies the class which this class is a subclass of
final -:declares that a class may not be subclassed or that a field or method may not be overridden
implements -:declares that this class implements the given interface
import -:permit access to a class or group of classes in a package
instanceof -:tests whether an object is an instanceof a class
interface -:signals the beginning of an interface definition
native -:declares that a method is implemented in native code
new -:allocates a new object
package -:defines the package in which this source code file belongs
private -:declares a method or member variable to be private
protected -:declares a class, method or member variable to be protected
public -:declares a class, method or member variable to be public
return -:returns a value from a method
static -:declares that a field or a method belongs to a class rather than an object
super -:a reference to the parent of the current object
synchronized -:Indicates that a section of code is not thread-safe
this -:a reference to the current object
throw -:throw an exception
throws -:declares the exceptions thrown by a method
transient -:This field should not be serialized
volatile -:Warns the compiler that a variable changes asynchronously
Two other keywords, const and goto, are reserved by Java but are not actually
Source(s):
http://www.examville.com
Permalink | Report
Other Answers (1)
November 11, 2009 11:34 AM
Basic java Programming Keywords are: abstract
assert
boolean
break
byte
case
catch
char
class
continue
default
do
double
else
enum
extends
final
finally
float
for
if
implements
import
instanceof
int
interface
long
native
new
package
private
protected
public
return
short
static
super
switch
synchronized
this
throw
throws
transient
try
void
volatile
while
Source(s):
notes from school
Permalink | Report
Answer this Question
Related Questions
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- neavesatron3000, November 23, 2009 11:52 PM
- nwesource, November 23, 2009 11:44 PM
- madison03, November 23, 2009 11:39 PM
- difarnelo, November 23, 2009 11:36 PM
- joserodrigo, November 23, 2009 11:24 PM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More