Java/J2SE
Wolfgang Hebold

Home

Schedule

Content

Material

Contact

Overview

What is specific with Java?

  • Object Oriented
  • Interpreted (Virtual Machine, byte code)
  • Portable (Write Once, Run Anywhere)
  • Dynamic
  • Simple
  • Distributed
  • Robust
  • Secure
  • High Performance
  • Slowly
  • Multithreaded
top

Environment

  • Java, Standard Edition
    • J2SE, 1.4.2
    • J2SE, 1.5/5.0 (Tiger)
      • Generics
      • Enumeration
      • Annotations (Metadata)
      • Autoboxing
      • Varargs
      • foreach-Loop
      • static import
    • Java SE 6 (Mustang)
      • No new language features but improvements.
    • Java SE 7 (Dolphin)
      • No new language features but improvements.
    • Java SE 8
      • λ-Expressions
      • Closures
      • Embedded JavaScript
  • JRE (runtime environment)
  • Virtual Machine (JVM)
  • Java SDK (JRE + compiler, debugger, javadoc)
  • Downloads
top

Compiling, Starting and Running a Programme

top

Structure of a Programme

  • Classes & Files
  • Packages
  • Import
  • Class hierarchy
top

Architecture

  • Core language
  • Standard libraries (API, AWT, Swing)
  • Enterprise (J2EE)
top

Important Packages

Java vs. C & C++

  • Differences to C
    • No Preprocessor
    • No Pointers
    • No Variables of non-primitive Types
    • No Global Variable
    • No 0-terminated Strings
    • No operator for detecting the storage used by an object
  • Differences to C++
    • No operator overloading
    • No multiple inheritance with classes
  • C concepts in Java
    • Pointer
    • Pointer to Functions
  • C++ concepts in Java
    • Classes
    • Overloading
    • Overriding
    • Multiple Inheritance
top

Examples

top