2. Working With Java Data Types


  • 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)


  • 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


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

3. Know how to read or write to object fields


  • dot operator
  • this

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


  • Referencing object on the heap
  • Garbage collection

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


  • 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