Java Best Practices for Design, Development, and Testing


Course Number: JAV-408

Duration: 5 days (32.5 hours)

Format: Live, hands-on

Java Training Overview

Accelebrate's 5-day Java Best Practices for Design, Development, and Testing training teaches attendees the best approaches to designing, writing and testing Java SE code.

We also offer a 3-day Java Best Practices for Design and Development class and a 2-day Java Best Practices class.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

Objectives

  • Consistently implement correct encapsulation, inheritance and polymorphism in Java
  • Understand correct and incorrect use of clone( ), equals( ) and hashCode( )
  • Use exceptions correctly in Java code
  • Use new features of Java 8 effectively, including streams and lambdas
  • Understand how Java Garbage Collection is implemented
  • Understand Ant and Maven
  • 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
  • Create simple unit tests for Java classes using JUnit and mocks

Prerequisites

Students should have taken Accelebrate's Beginning Java Application Development training or have the equivalent experience.

Outline

Expand All | Collapse All

Introduction
Basic OO Principles
  • Encapsulation Best Practices
  • Using inheritance/composition correctly
  • The use of inheritance and polymorphism
  • Using interfaces effectively
  • Design to Interface, not implementation
Using features of Java 8
  • Lambdas and method references
  • Streams
  • Default methods in interfaces
Java Best Practices
  • Exceptions - the good, bad and ugly
  • copy constructors vs. clone( )
  • implementing hashCode( ) and equals( )
  • How and when to refactor
Coding infrastructure and Tuning
  • An overview of Ant and Maven
  • An overview of Java Garbage Collection
  • Strong, weak, soft and phantom references
Design Patterns
  • The reasons for Design Patterns
  • Overview of Gang of Four patterns
  • Java EE Patterns
Unit Testing with JUnit and mocks
  • Unit testing basics
  • Testing-dependent objects
  • Testing Best Practices
Conclusion

Training Materials:

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

Software Requirements:

  • At least 8GB RAM
  • Any operating system that supports Java 1.8 or later
  • JDK 8 or later
  • 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


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan