Java SE 13: Semantics of Method Invocation & Nested Classes


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

This course examines Java's support for exceptions and covers three specific topics: initialized blocks, the details of pass-by-value and pass-by-reference semantics, and the two types of nested classes. You will work in Java with initialization blocks on both static member values to construct static elements in your class and on non-static member variables as an alternative to constructors. This course uses examples of pass-by-value and pass-by-reference code to demonstrate how variables behave when they are passed from one function to another in arrays and strings. Next, learners explore the semantics of argument passing for primitive types, strings, and for objects. You will experiment with arrays and learn to use the Arrays.toString helper method. You will learn the rules and conventions that govern the two types of nested classes: static classes and inner classes. Finally, learn how a static class is created or nested inside a class, and how inner classes can logically group classes and interfaces in one place.



Expected Duration (hours)
1.4

Lesson Objectives

Java SE 13: Semantics of Method Invocation & Nested Classes

  • discover the key concepts covered in this course
  • use initialization blocks to appropriately initialize static and non-static member variables
  • recognize how variables of primitive types are governed by pass-by-value semantics in Java
  • recognize how variables of reference types are governed by pass-by-reference semantics in Java
  • avoid pitfalls related to re-initialization and modification of objects (reference types) while invoking functions in Java
  • correctly define static nested classes
  • correctly initialize objects of static nested classes
  • correctly define inner classes
  • correctly initialize objects of inner classes
  • summarize the key concepts covered in this course
  • Course Number:
    it_jdcojdj_04_enus

    Expertise Level
    Intermediate