Java Programming: Working with Strings & Wrapper Objects


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

This 11-video course focuses on string objects in Java. Participants will learn the basics of string objects, which encapsulate an array of characters used to compose words, sentences, or any other data one wants. The course demonstrates how to initial string objects and shows how the process of initialization influences comparisons of strings. Begin by initializing strings with StringBuilder and StringBuffer objects, which can be used to efficiently alter and construct strings. Then see how Java initializes the StringBuffer to have a certain initial capacity, and learn how to allocate additional capacity as needed. This course features an in-depth study of the difference between the double equal to operator and the .equals method, when comparing object types that include strings. You will also learn how null is a reserved keyword for literal values. Participants will learn how to encapsulate the eight primitive types of variables into objects with the built-in wrapper classes, by using Java's eight wrapper types.



Expected Duration (hours)
1.3

Lesson Objectives

Java Programming: Working with Strings & Wrapper Objects

  • discover the key concepts covered in this course
  • compare objects for semantic equality
  • create String objects using different input arguments and forms of memory allocation
  • differentiate between equality tests based on the == operator and .equals
  • initialize local variables of primitive as well as non-primitive types
  • use the StringBuffer object to perform string operations
  • differentiate between the StringBuffer and the StringBuilder object, and determine the right choice for your specific use-case
  • create wrapper objects such as Integer, Float, etc. to encapsulate primitive (non-object) data types
  • perform type conversions using methods available in various wrapper objects
  • extract primitive data types back from wrapper objects of type Integer, Float, etc.
  • summarize the key concepts covered in this course
  • Course Number:
    it_apgsjpdj_04_enus

    Expertise Level
    Intermediate