COMP 170 Study Guide - Midterm Guide: Uninitialized Variable, Primitive Data Type, Scientific Notation

97 views5 pages
23 Feb 2018
School
Course

Document Summary

Variables: store data (numbers and variables) what they store is called a value. Start with a lower case and the change (ex: myname) When you declare it you provide name and type kind of value it holds (int, double, char). To declare a variable you need to put it in between {} Class type: class of objects and has both data and methods. Primitive type: no decomposable values such as an individual number or individual character (int, double, char) this are not capitalized. Keywords: words that already have a meaning for java (ex: if) this cannot be used as identifiers. Assignment statement: also called the assignment operator (=). Used to assign a value to a variable (???) *uninitialized variable (null value) assign a value at the time the variable is declared. At the beginning of the file: import java. util. scanner. Followed by: scanner keyboard = new scanner (system. in) Can be separated by + or (no comas)

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents

Related Questions