COMP 150 Study Guide - Final Guide: Java Bytecode, Java Syntax, Java Virtual Machine

77 views12 pages

Document Summary

Chapter 1: introduction to computers, programs, and java. Byte minimum storage unit composed of 8 bits. Kilobyte 1,000 bytes, megabyte 1 million bytes, gigabyte 1 billion bytes, terabyte 1 trillion bytes. Memory consists of an ordered sequence of bytes for storing program instructions and the data that the program operates on. Java program written as source code in a plain text file that must have the extension. java with the name matching the class defined in the file. Class definition that consists of a single static method called main. Keywords reserved words that have specific meaning to compiler and can(cid:1442)t be used for other purposes in the program like variable names. Comments multi line: /* */ or single line: // Stylistic guidelines proper indentation, spacing around operators, multiline comment at top (program name, date, author, and description), consistent use of one block style. Java syntax rules case sensitive, naming conventions, variables cannot be keywords.

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