Appendix A. Self-test Questions and Answers

Here, we have included some questions you could ask yourself to see whether you have understood each chapter. Don't worry! The answers are also included.

Chapter 2

Q1) What should you do if all this talk of life cycles, classes, and methods is a bit confusing?

A) Don't worry about them. Understanding comes a bit at a time, and if they are not entirely clear at this stage, it will not hold you back from thoroughly learning Java, and all will become clearer as we progress.

Q2) What exactly is a Java class?

A) Classes are a fundamental building block of Java programs. They are like containers for our Java code, and we can even use other people's classes to simplify the programs we write, even without seeing ...

Get Learning Java by Building Android Games 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.