CS 2110- Midterm Exam Guide - Comprehensive Notes for the exam ( 60 pages long!)

137 views60 pages
13 Oct 2017
Course
Professor

Document Summary

Lecture 1 - types: type: set of values together with operations on them. , -3, -2, -1, 0, 1, 2, 3, Ex: x = 100; x = hello world". First we declare x as an int type, then we can store something in it. So if we then wrote x = hello world"; we would get an error, because hello world" is not an int. Values can only be in the range -2^(31) 2^(31) - 1. Integer. max_value: name for max int value, i. e. 2^(31)-1. So if we want to let d be a double d=21e20. You didn"t declare d as a double. You need first double d; d = 21e20. Lecture 2 - objects: like in python, parameter is the variable inside a method. Argument is when you call the method: creating a new object new javax. swing. jframe() Value of this expression is a pointer to the new object. This lets us know the type for h.

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