Java SE 8 Fundamentals: Methods, Encapsulation, and Conditionals


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/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.

Target Audience
Programmers with an understanding of object-oriented programming concepts who want to learn Java; programmers proficient in another object-oriented programming language who want to move to Java

Prerequisites
None

Expected Duration (hours)
1.8

Lesson Objectives

Java SE 8 Fundamentals: Methods, Encapsulation, and Conditionals

  • 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
  • describe Java static methods and variables
  • describe some static methods and variables in the JDK libraries
  • 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
  • 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 creating overloaded constructors in a sample Java application
  • 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 in a sample Java applications
  • Course Number:
    jl_jsee_a03_it_enus

    Expertise Level
    Beginner