ITEC 120: Week 3
- QUIZ 2 on THURSDAY! Based on
Homework 2
- Lab 5
- LAB QUIZ 1 on FRIDAY!
- Selected Topics from Chapter 2:
- Parameter - provides information to a method
- Primitive data types:
- Integer types: byte, short, int, long
- Floating point types: long, double
- Other types: character, boolean
- Expressions
- Operators: +, -, *, /, %
- Operator precedence
- Expression trees
- Assignment Operator precedence
- Variables in assignment statements
- Assignment using same variable on both sides
- count = count + 1;
- sum = sum + x;
-
- Data Conversion
- Widening/narrowing
- Assignment Conversion
- Promotion
- Casting
- increment and decrement operators
- assignment operators
-
Chapter 2 Powerpoint Slides - Edited
-
Examples from Chapter 2
- To know for lab 5
- Submit to neelix (before lab, if possible)
- declarations, input, calculation(!), output
Selected Topics from Chapter 3:
- Reference and primitive types
- Reference variables hold addresses of objects
- A class is a new type
- Instantiation: creating a new instance of an object
- Use new and constructor to instantiate
- object.method() invokes a method
Chapter 3 Powerpoint Slides
Examples from Chapter 3