Learn Java programming from the ground up: data types, operators, control statements, classes and inheritance.
Java for beginners is the entry point for anyone who wants to learn Java programming from the ground up, whether you are a student, an exam candidate, a working professional or a self-learner starting your first language. The book opens with an introduction to Java and its key features, then builds your understanding step by step. You will work with data types, variables and arrays, and use operators to form expressions.
Control statements let you direct the flow of a program with decisions and loops. Classes and methods show you how to organise code around objects, and inheritance helps you reuse and extend what you have written. Packages and interfaces introduce structure and contracts in larger programs, while exception handling teaches you to deal with errors.
Inside this book:
Introduction to Java and its featuresData types, variables and arraysOperatorsControl statementsClasses, methods and method overloadingInheritancePackages and interfacesException handlingEvent handlingThe Applet class
Event handling and the applet class round out the picture of how Java programs respond to user actions. Each chapter stays close to the language itself, so you can read, practise and move forward at your own pace. As an e-book, it travels with you: read it on any device, search for a term and bookmark the pages you want to revisit while you code.