Chapter 2

Learning Language Fundamentals

Aspiring Android developers need to understand the Java language. Java is an object-oriented language in which developers use objects to represent entities (things that exist, such as vehicles, checking and savings bank accounts, and buttons and other user interface components). Language features supporting this paradigm are the focus of this chapter and Chapter 3. More advanced features are discussed in Chapters 4 and 5. Additional advanced but minor features are more appropriately discussed in later chapters.


Object-oriented applications represent entities as objects (entity abstractions). Each object encapsulates (combines into a single unit) an entity's attributes and behaviors. For example, ...

Get Learn Java for Android Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.