CSC 120 Study Guide - Final Guide: Java Bytecode, Filename Extension, Text Editor

86 views26 pages
champagnegnat971 and 18 others unlocked
CSC 120 Full Course Notes
26
CSC 120 Full Course Notes
Verified Note
26 documents

Document Summary

Hello, world : program list of instructions that are actions for machine running program to perform, algorithm an abstract idea about how to solve the task at hand. Int: 32 bits, whole #s 2,147,483,648 through 2,147,483,647: long: 64 bits, whole #s 9,223,372,036,854,775,808 through. 9,223,372,036,854,775,807: float: 32 bits, real #s 3. 4 10 38 through 3. 4 1038, double: 64 bits, real #s 1. 7 10 308 through 1. 7 10308, boolean: 1 bit, logical value (true or false, char: 16 bits, nonnegative, for a character, use single quotation marks. Scanner series of characters that can come from 3 different sources: string data, a file, the keyboard: the keyboard is an object of type inputstream, token reading unit for scanner, separated by delimiters, delimiters whitespace, tab, newline. Import to tell the compiler that its source code must be added to the source for compilation. Importing scanner can be done by adding one of these lines above start of your code: import java. util.