Java SE 13: Semantics of Method Invocation & Nested Classes

Java    |    Intermediate
  • 10 videos | 1h 23m 4s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 21 users Rating 4.6 of 21 users (21)
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 2m 6s
  • 11m 15s
    Learn how to use initialization blocks to initialize static and non-static member variables. FREE ACCESS
  • Locked
    3.  Pass-by-Value
    9m 58s
    Upon completion of this video, you will be able to recognize how variables of primitive types are governed by pass-by-value semantics in Java. FREE ACCESS
  • Locked
    4.  Pass-by-Reference
    10m 47s
    Upon completion of this video, you will be able to recognize how variables of reference types are governed by pass-by-reference semantics in Java. FREE ACCESS
  • Locked
    5.  Modification vs. Re-initialization
    9m 31s
    Learn how to avoid pitfalls related to re-initialization and modification of objects (reference types) while invoking functions in Java. FREE ACCESS
  • Locked
    6.  Defining Static Nested Classes
    9m 30s
    Find out how to correctly define static nested classes. FREE ACCESS
  • Locked
    7.  Using Static Nested Classes
    9m 12s
    Find out how to correctly initialize objects of static nested classes. FREE ACCESS
  • Locked
    8.  Defining Inner Classes
    9m 24s
    Learn how to correctly define inner classes. FREE ACCESS
  • Locked
    9.  Using Inner Classes
    10m 14s
    In this video, find out how to correctly initialize objects of inner classes. FREE ACCESS
  • Locked
    10.  Course Summary
    1m 8s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.7 of 100 users Rating 4.7 of 100 users (100)
Rating 4.6 of 57 users Rating 4.6 of 57 users (57)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 80 users Rating 4.6 of 80 users (80)
Rating 4.3 of 87 users Rating 4.3 of 87 users (87)
Rating 4.4 of 33 users Rating 4.4 of 33 users (33)