[CSE 8B] - Final Exam Guide - Comprehensive Notes fot the exam (91 pages long!)

102 views91 pages

Document Summary

Methods that appear to change strings actually create and return new ones char: 16-but values, use utf-16. Superset of ascii: ascii table will give info about char. || and && operators can be short-circuited: with a||b. If a is true, b is never evaluated: with a && b. If a is false, b is never evaluated. String concatenation int a = 5, b = 4, c = 3; Syste(cid:373). out. pri(cid:374)tl(cid:374)(cid:894)a + (cid:894)(cid:271) + (cid:272)(cid:895) + = + (cid:894)a + (cid:271)(cid:895) + (cid:272)(cid:895); First, everything in the inner () are evaluated: b + c == 7, a + b == 9. Then, we move from left to right. A is added to b + c: the part to left of = is (cid:374)ow (cid:1005)(cid:1006) After the = is (cid:272)o(cid:374)(cid:272)ate(cid:374)ated, the e(cid:374)tire state(cid:373)e(cid:374)t (cid:271)e(cid:272)o(cid:373)es a stri(cid:374)g: to the right of = , it will (cid:271)e(cid:272)o(cid:373)e 9(cid:1007)

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

Related Documents