Java SE 13: Semantics of Method Invocation & Nested Classes
Java SE 13
| 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
-
1.Course Overview2m 6sUP NEXT
-
2.Initialization Blocks11m 15s
-
3.Pass-by-Value9m 58s
-
4.Pass-by-Reference10m 47s
-
5.Modification vs. Re-initialization9m 31s
-
6.Defining Static Nested Classes9m 30s
-
7.Using Static Nested Classes9m 12s
-
8.Defining Inner Classes9m 24s
-
9.Using Inner Classes10m 14s
-
10.Course Summary1m 8s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.