Cover Page by Rogers Cadenhead

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Day 16. Serializing and Examining Objects

An essential concept of object-oriented programming is the representation of data. In an object-oriented language such as Java, an object represents two things:

• Behavior: The things an object can do

• Attributes: The data that differentiates the object from other objects

Combining behavior and attributes is a departure from other programming languages, where a program is defined as a set of instructions that manipulate data. The data is a separate thing, such as how word processing software is considered to be a program that creates and edits text documents. The data is separate from the software that manipulates it.

Object-oriented programming blurs the line between program and data. An object in a ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required