02b_Elementary Programming-Expressions

02b_Elementary Programming-Expressions - Chapter 2...

Info icon This preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 2 Elementary Programming Expressions 4/18/2014 Prepared by: Dr. Sim; Source: Liang, Pearson 1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Preparation View videos: http://www.youtube.com/watch?v=UamOBo0Z3aw http://www.youtube.com/watch?v=-iuBNp04Hqk 4/18/2014 2 Prepared by: Dr. Sim; Source: Liang, Pearson
Image of page 2
Motivations In the preceding chapter, you learned how to create, compile, and run a Java program. Starting from this chapter, you will learn how to solve practical problems programmatically. Through these problems, you will learn Java primitive data types and related subjects, such as variables, constants, data types, operators, expressions, and input and output. 4/18/2014 3 Prepared by: Dr. Sim; Source: Liang, Pearson
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Learning Outcomes Describe Data Storage Describe expressions assignments Describe casting and conversions 4/18/2014 4 Prepared by: Dr. Sim; Source: Liang, Pearson
Image of page 4
Storing data Each data type is stored differently. There are two categories: Stored by value (primitive data) stores the actual data Stored by reference (non primitive data) stores the references to the data 5 Prepared by Dr. Sim Tze Ying; Source: Liang, Pearson
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon