CS 121 Lecture Notes - Lecture 9: Increment And Decrement Operators, Concatenation, Extended Ascii

18 views5 pages

Document Summary

Chapter 2 cont"d: primitive data types & expressions. There are 8 primitive data types in java; 4 of them represent integers: byte, short, int, long. 2 of them represent floating point numbers: float, double. +/- 3. 4 x 1038 w/ 7 significant digits. +/- 1. 7 x 10308 w/ 15 significant digits. & 1 of them represents boolean values: boolean. Character literals are delisted by single quotes: Ex: char bloodtype = a"; char terminator = ; , separator = ; The difference between a char variable & a string object is that a char variable can only hold one character & a string can hold multiple characters. The characters we can manage are defined by a character set - the ascii character set (american standard code for information interchange) Extended ascii uses 8 bits per character, to satisfy increasing demand of a more flexible character set. # of characters in extended ascii is 28.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents