5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

IT Skills     Software Design and Development     Java     Modeling Entities Using Classes and Objects
The best way to avoid mysterious bugs while running your Java code is to be adept at working with static members, argument passing, and object base class methods​.
Use this course to master these subtleties: the difference between static and instance variables and methods, the hashCode contract, and how pass-by-value and pass-by-reference semantics play out with argument passing in Java.
By the end of this course, you'll be able to model state in classes using both static and instance variables, write methods to avoid unexpected changes in input arguments, and adhere to the hashCode contract so that objects function as expected when placed in common Java containers.

Objectives

Modeling Entities in Java: Static Members, Arguments, & Method Overriding

  • discover the key concepts covered in this course
  • recall Java best practices to access static variables
  • use class references to access static variables and describe the use of the 'final' keyword
  • outline access restrictions on instance members from static members
  • implement a scenario using a static variable to count instantiated objects
  • use class reference to invoke and execute static methods
  • reassign variables inside methods and explore where the changes are visible
  • contrast the effects of variable reassignment with variable modification
  • outline pass-by-value and pass-by-reference with custom objects
  • recall the operation of the == operator and the default .equals() method
  • examine how to work with the .equals() and .hashCode() methods and the hashCode contract
  • override .equals() to check for semantic equality
  • override .hashCode() and .equals() to honor the hashCode contract
  • summarize the key concepts covered in this course