Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Java Keywords 
 

There are few keywords in Java programming language. Remember, we cannot use these keywords as identifiers in the program.

 

Java Keywords

                         

There are few keywords in Java programming language. Remember, we cannot use these keywords as identifiers in the program. The keywords const and goto are reserved though, they are not being currently used.  

The brief description of each one of the keyword is given below.

abstract:
When a class is not to be instantiated, use abstract keyword but rather extended by other classes. This keyword is used to in a method declaration to declare a method without providing the implementation. 

assert:
 To make the assumed value of a condition explicit, assert keyword is used. An AssertionError is thrown if the condition is not true.

boolean:
This keyword is used to pertain to an expression or variable that can have only a true or false value. 

byte:
This is an an 8-bit integer. This keyword is used to declare an expression, method return value, or variable of type byte.

case:
This keyword is used to defines a group of statements. The value defined by the enclosing switch statement should match with the specified value.

catch:
This keyword is used to handle the exceptions that occur in a program preceding try keyword. When the class of the thrown exception is assignment compatible with the exception class declared by the catch clause then only the code is executed.

char:
This Java keyword is used to declare an expression, method return value, or variable of type character.

class:
This keyword is used to define the implementation of a particular kind of object.  

const: 
This keyword has been deprecated from Java programming language.

continue:
This keyword is used for the continuation of the program at the end of the current loop body. 

default:
If the value defined by the enclosing switch statement does not match any value specified by a case keyword in the switch statement, default keyword is used to define a group of statements to begin the execution.

do:
Used to declare a loop that will iterate a block of statements. The loop's exit condition is specified with the while keyword. The loop will execute once before evaluating the exit condition.

double:
A 64-bit floating point value. A Java keyword used to declare an expression, method return value, or variable of type double-precision floating point number.

else:
This keyword is used to test the condition. It is used to define a statement or block of statements that are executed in the case that the test condition specified by the if keyword evaluates to false.

enum: 
Enumerations extend the base class Enum.This Java keyword is used to declare an enumerated type. 

extends:
 To specify the superclass in a class declaration, extends keyword is used. It is also used in an interface declaration to specify one or more superinterfaces.

final:
It is used to define an entity once that cannot be altered nor inherited later. Moreover, 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 implicitly final.

finally:
This keyword is used when the finally block is executed after the execution exits the try block and any associated catch clauses regardless of whether an exception was thrown or caught.

break:
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.

                         

» View all related tutorials
Related Tags: c class static io classes instance with member delegation sse ci explicit e it ls can li use ce in

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.