Please contact us
for GSA pricing.

Contract #

Please see our complete list of Microsoft Official Courses

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 60% hands-on, 40% 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

  • Core 2 Duo or faster processor with at least 3 GB RAM
  • Any operating system that supports Java 1.7 or later
  • JDK 7 (6 could be accommodated upon request)
  • The Java tool the students are likely to use after the class (Eclipse is recommended, but IntelliJ IDEA, IBM RAD, NetBeans, and other tools are supported)
  • Other free software - please contact us if you have purchased this class

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 type-safe collections and enums
  • Recognize the use of 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 features of Java 6 and 7
    • 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