United States flagCanada flag1 877 849 1850 International flag +1 678 648 311
Please contact us
for GSA pricing.
GSA
Contract #
GS-35F-0307T

Java Training: Java Best Practices

Course Number: JAV-304
Duration: 3 days
view course outline

Java Training Overview

Accelebrate's Java Best Practices training teaches attendees the best approaches to designing and writing Java SE code.

Location and Pricing

Most Accelebrate courses are delivered as private, customized, on-site training at our clients' locations worldwide for groups of 3 or more attendees and are custom tailored to their specific needs. Please visit our client list to see organizations for whom we have delivered private in-house training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor's or students' travel expenses. To receive a customized proposal and price quote for private training at your site or online, please contact us.

In addition, some courses are available as live, online classes for individuals. See a schedule of online courses.

Java Training Prerequisites

Accelebrate's Beginning Java Application Development or equivalent experience.

Hands-on/Lecture Ratio

This Java training course is 70% hands-on, 30% lecture, with the longest lecture segments lasting for 20 minutes.

Java Training Materials

All Java Best Practices training students receive a copy of Prentice Hall’s Effective Java and courseware covering all topics in the course.

Software Needed on Each Student PC

  • Java SE SDK 5, 6, or later
  • The latest version of Eclipse

Java Training Objectives

  • Consistently implement correct encapsulation, inheritance and polymorphism in Java
  • Use exceptions correctly in Java code
  • Create simple unit tests for Java classes in JUnit
  • Use Java 5 type-safe collections and enums
  • Recognize the use of Java 5 annotations and autoboxing in Java code
  • Understand how Java Garbage Collection is implemented
  • Understand correct and incorrect use of clone( ), equals( ) and hashCode( )
  • Implement a simple Singleton, and understand when to use it
  • Recognize the use of other design patterns in Java code, including Template, Strategy, Decorator and Observer

Java Training Outline

  • Basic OO Principles
    • Encapsulation - make all data private, not protected or public
    • Design to Interface, not implementation
    • The use of inheritance and polymorphism
  • Overview of other Java 5 features
    • Type-safe collections
    • Concise for loop
    • Annotations
    • Autoboxing
    • enums
  • Java Best Practices
    • Exceptions - the good, bad and ugly
    • synchronize narrowly, how to synchronize on static
    • copy constructors vs. clone( )
    • implementing hashCode( ) and equals( )
    • Refactoring - how and what to do
  • Correct use of instanceof
    • Coding infrastructure and Tuning
    • JUnit
    • An overview of Ant and Maven
    • An overview of Java Garbage Collection
    • Effective use of Collections API
  • Design Patterns
    • The reasons for Design Patterns
    • Overview of GoF patterns
    • J2EE Patterns
  • Conclusion