1.3 Programming Basics

’The time has come,’ the Walrus said,

’To talk of many things:

Of shoes–and ships–and sealing wax–

Of cabbages–and kings … ’

—LEWIS CARROLL, Through the Looking-Glass

Programming is a creative process. We cannot tell you exactly how to write a program to do whatever task you might want it to perform. However, we can give you some techniques that experienced programmers have found to be extremely helpful. In this section, we discuss some basics of these techniques. They apply to programming in almost any programming language and are not particular to Java.

Object-Oriented Programming

Java is an object-oriented programming language, abbreviated OOP. What is OOP? The world around us is made up of objects, such as people, ...

Get Java: An Introduction to Problem Solving and Programming, 8th 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.