Telling the Computer What to Do

A computer program, also called software, is a way to tell a computer what to do. Everything that the computer does, from booting up to shutting down, is done by a program. Windows 7 is a program; Call of Duty is a program; the driver software you installed with your printer is a program; even an email virus is a program.

Computer programs are made up of a list of commands the computer handles in a specific order when the program is run. Each command is called a statement.

If your house had its own butler, and you were a high-strung Type-A personality, you could give your servant a detailed set of instructions to follow:

Dear Mr. Jeeves,Please take care of these errands for me while I’m out asking Congress for ...

Get Sams Teach Yourself Java™ in 24 Hours, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.