Java
  Home arrow Java arrow Page 4 - Primitive Data Types and Basic Language Rules for Java
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
JAVA

Primitive Data Types and Basic Language Rules for Java
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 12
    2007-09-24


    Table of Contents:
  • Primitive Data Types and Basic Language Rules for Java
  • Working with Arrays
  • Multidimensional Arrays
  • A Few More Rules

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Primitive Data Types and Basic Language Rules for Java - A Few More Rules
    ( Page 4 of 4 )

    Java likes to separate the men from the boys, the hair from your head, and the code that you write. To do this, we use separators (didn't see that coming did you?).

    Separators

    Below is a list of separators and their functions.

    How it Looks

    Name

    Function

    .

    Period

    Separates package names from subpackages and classes. Can also be used to separate a variable or method from a reference variable.

    ;

    Semicolon

    Ends statements.

    ,

    Comma

    Separates identifiers when declaring variables.

    {}

    Braces

    No not for your teeth. Contains the values of initialized arrays. Also for declining a block of code, classes, methods, local scopes.

    []

    Brackets

    For declaration of array types or dereferencing array values.

    ()

    Parentheses

    Holds lists of parameters in method definition, defining precedence in expressions, holding expressions in control statements, and encasing cast types

    Keywords

    As part of its diverse vocabulary, Java has 49 reserved keywords. These keywords cannot be used to name a variable, class, or method, and will not magically open doors (rely on good ole' "open sesame" for that one). You want to see what they look like in a table? Well here they are:

    abstract

    assert   

    boolean

    break

    byte

    case

    catch

    char

    class

    const

    continue

    default

    do

    double

    else

    extends

    final

    finally

    float

    for

    goto

    if

    implements

    import

    instanceof

    int

    interface

    long

    native

    new

    package

    private

    protected

    public

    return

    short

    static

    strictfp

    super

    switch

    synchronized

    this

    throw

    throws

    transient

    try

    void

    volatile

    while

    Final Notes

    That concludes this episode of Beginning Java Programs. In the next article we will discuss Operators and putting those lazy variables to work.



     
     
    >>> More Java Articles          >>> More By James Payne
     

       

    JAVA ARTICLES

    - Exception Handling Techniques in Java
    - More About Multithreading in Java
    - The Basics of Multiple Threads in Java
    - Data Access Using Spring Framework JDBC
    - New Object Initialization in Java
    - Adding Images With iTextSharp
    - Adding Columns With iTextSharp
    - Creating Simple PDF Files With iTextSharp
    - The Spring Framework: Understanding IoC
    - Introducing the Spring Framework
    - Java Classes
    - Completing the Syntactic Comparison of Java ...
    - Syntactic Comparison of Java and C/C++
    - Java Statements
    - Conditionals, Expressions and Other Java Ope...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek