Course length: 5 days
Overview: Java 2: Programming Language introduces the foundations of Java 2 Standard Edition (J2SE) technology. Students will explore concepts and perform hands-on exercises to apply what they learn. Java is the language of choice for the Internet. Java enhances productivity by allowing the inheritance of methods and properties from the well-organized Java Class Library. Students will build Graphical User Interfaces and handle various events. Students will explore multi-threading and how it can improve the performance of applications. Students will also use many methods of the Graphics class to draw shapes.
Prerequisites: To ensure your success, we recommend you first take the following Element K course or have equivalent knowledge:
· Introduction to Programming (required)
· HTML Programming, Level 1 (recommended)
Performance-based Objectives
Lesson objectives help students become comfortable with the course, and also provide a means to evaluate learning. Upon successful completion of this course, students will be able to:
· List the benefits and roles of the Java programming language.
· Utilize primitive datatypes, variables, constants, literals, and methods.
· Implement classes and properties, and understand abstraction and encapsulation.
· Differentiate between an application and an applet, and pass parameters to both.
· Use inheritance, interfaces, packages, modifiers, as well as archive files.
· Use operators and expressions to perform calculations and typecasting.
· Control the flow of programs with branching and looping.
· Explore the packages and interfaces in the Java Class Library.
· Explore the java.lang package and use methods from the String and Math classes.
· Change fonts and colors in the display; use Graphics and Image classes to draw to the display.
· Handle key and mouse events.
· Explore the applet architecture, detect and process errors, and explore threads.
· Explore the AWT package and build a GUI interface.
Lesson 1: An Introduction to Java
Java-the Language of the Internet
The Benefits of Java
The Essential Building Blocks of JDK
Lesson 2: Datatypes, Variables, and Methods
Datatypes
Variables, Constants, and Literals
Storing and Retrieving Values
Methods
Lesson 3: Object Orientation, Part 1
Classes and Instances
Methods
Properties
Abstraction and Encapsulation
Lesson 4: Construction Time
General Components
Build an Application
Building an Applet
Passing Parameters
Lesson 5: Object-Orientation, Part 2
Inheritance
Java Terms
Modifiers
Overloading Methods
Constructors
Using Inner Classes
Encapsulation
Lesson 6: Java Language-Statements and Expressions
Statements and Expressions
Automatic and Explicit Type Conversions
Garbage Collection
Lesson 7: Branching and Looping
Making Decisions
Looping
Lesson 8: The Java Class Library
Standard Packages
Standard Interfaces
The Collections Framework
Lesson 9: Exploring java.lang
Classes and Interfaces
The String Class
The Math Class
Lesson 10: Fonts, Graphics, and Images
Fonts and Colors
Graphics
Images
Lesson 11: Handling Events
Event Handling
Key Events
Mouse Events
Lesson 12: Threads and Animations
Applet Architecture
Exception Handling
Threads
Lesson 13: AWT and GUI
The Abstract Window Toolkit (AWT) Package
Building the GUI
Appendix A: The java.io Package
Appendix B: The Java Class Library Reference
Appendix C: Java Datatypes, Operators, and Keywords
Appendix D: Event Handling
Appendix E: Exceptions
Appendix F: Abstract Window Toolkit (AWT)
Appendix G: Downloading and Installing the JDK
Appendix H: Java Related Web Sites