Java syntax is a lot like C++. For those of you who know C, a lot of Java code may look familiar. For those of you who know C++, most of the Java code should look familiar. In this section we will look at the basics of the Java language.

  • Comments
  • Data Types
  • Arrays
  • Operators
  • Classes
  • Modifiers
  • Subclassing
  • Interfaces
  • Methods
  • Constructors
  • Exceptions
  • Packages
  • Keywords

    Here is a list of keywords for the Java language:
    abstract    continue    for  	     null  	  synchronized 
    boolean     default     if           package      this
    break       do          implements   private      threadsafe
    byte        double      import       protected    throw
                else        instanceof   public       throws
    case        extends     int          return       transient
    catch       false       interface    short        true
    char        final       long         static       try
    class       finally     native       super        void
    volatile    float       new          switch       while
    


    Back to Lecture1