AP Computer Science Study Guide

Welcome to the AP Computer Science Study Guide. Let's jump right in.

Table of Contents

Comments

 /* * This is * a long comment. */ 

// This is a short comment.

Intro to Strings

Escape Sequence Table

\n and \" will be the escape sequence you will used most frequently.

Variables

Primitive Data Types

int = integer (-2, 147, 9, . )

double = floating point number, twice as much memory than float

char = single character

Using Mathematical Operators

Defining a variable example