2. Working With Java Data Types

Note:

  • there is overlap between topics, which is unavoidable due to the organisation of the objectives
  • Touched on topics are introduced, but covered in other sections in much greater detail


1. Declare and initialize variables (including casting of primitive data types)


Topics:

  • Naming variables
  • Number systems
  • Primitive types
  • Declarations
  • Initializing variables
  • Widening and narrowing
  • Casting
  • Note: Strings covered later under Creating and Manipulating Strings



2. Differentiate between object reference variables and primitive variables


Topics:

  • == operator with primitives and object references
  • method arguments: pass by value



3. Know how to read or write to object fields


Topics:

  • dot operator
  • this



4. Explain an Object's Lifecycle (creation, "dereference by reassignment" and garbage collection)


Topics:

  • Referencing object on the heap
  • Garbage collection



5. Develop code that uses wrapper classes such as Boolean, Double, and Integer.


Topics:

  • Wrapper classes: Byte, Character, Integer, Long, Float
  • Autoboxing



Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License