Java SE 13: Semantics of Method Invocation & Nested Classes
Java
| Intermediate
- 10 videos | 1h 23m 4s
- Includes Assessment
- Earns a Badge
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 courseUse initialization blocks to appropriately initialize static and non-static member variablesRecognize how variables of primitive types are governed by pass-by-value semantics in javaRecognize how variables of reference types are governed by pass-by-reference semantics in javaAvoid pitfalls related to re-initialization and modification of objects (reference types) while invoking functions in java
-
Correctly define static nested classesCorrectly initialize objects of static nested classesCorrectly define inner classesCorrectly initialize objects of inner classesSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 6s
-
11m 15sLearn how to use initialization blocks to initialize static and non-static member variables. FREE ACCESS
-
9m 58sUpon 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
-
10m 47sUpon 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
-
9m 31sLearn how to avoid pitfalls related to re-initialization and modification of objects (reference types) while invoking functions in Java. FREE ACCESS
-
9m 30sFind out how to correctly define static nested classes. FREE ACCESS
-
9m 12sFind out how to correctly initialize objects of static nested classes. FREE ACCESS
-
9m 24sLearn how to correctly define inner classes. FREE ACCESS
-
10m 14sIn this video, find out how to correctly initialize objects of inner classes. FREE ACCESS
-
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.