• Online, Self-Paced
Course Description

Java, an object-oriented programming language, is one of the most widely used development languages in the world today. It allows programmers to create objects that can interact with other objects to solve a problem. This course covers working with methods, including method overloading. It also covers how to apply access control levels to classes and methods, how to implement encapsulation of fields, and how to overload constructors. Additionally, it covers relational and conditional operators, how to configure complex if/else constructs and use switch statements. This course can be used as part of preparation for the Oracle exam 1Z0-808, Java SE 8 Programmer, to obtain the Oracle Certified Associate level certification.

Learning Objectives

Creating and Using Methods

  • start the course
  • describe how to use constructors and methods in Java
  • describe Java method arguments and return values
  • declare, call, and test a method in a Java program

Static Methods

  • describe Java static methods and variables
  • describe some static methods and variables in the JDK libraries

Method Arguments and Overloading

  • describe how arguments are passed to a method
  • describe how Java methods can be overloaded
  • create an overloaded method in a Java class
  • use the Math.random method in a Java application

Practice: Working with Methods in Java

  • practice working with methods in Java

Using Encapsulation

  • describe how access control levels can be applied to Java classes
  • describe how encapsulation can be applied to hide fields in Java classes
  • encapsulate a Java class
  • practice encapsulating fields with the NetBeans Refactor Feature
  • describe how Java constructors can be overloaded
  • create an overloaded constructor in a Java class and call the constructor to create an object

Practice: Encapsulation in Java

  • practice creating overloaded constructors in a sample Java application

More on Conditionals

  • describe relational operators and describe how to test Java String variables for equality
  • describe the use of conditional operators including the ternary operator in Java
  • use the ternary operator in a Java program
  • work with if/else constructs in Java
  • chain if statements in a Java program
  • describe how switch statements are used in Java
  • use the switch construct in a Java program

Practice: Using Conditional Statements (SAE)

  • practice using conditional statements in a sample Java applications

Framework Connections