Book Image

Java Programming for Beginners

By : SkillSprints Inc., Mark Lassoff
Book Image

Java Programming for Beginners

By: SkillSprints Inc., Mark Lassoff

Overview of this book

Java is an object-oriented programming language, and is one of the most widely accepted languages because of its design and programming features, particularly in its promise that you can write a program once and run it anywhere. Java Programming for Beginners is an excellent introduction to the world of Java programming, taking you through the basics of Java syntax and the complexities of object-oriented programming. You'll gain a full understanding of Java SE programming and will be able to write Java programs with graphical user interfaces that run on PC, Mac, or Linux machines. This book is full of informative and entertaining content, challenging exercises, and dozens of code examples you can run and learn from. By reading this book, you’ll move from understanding the data types in Java, through loops and conditionals, and on to functions, classes, and file handling. The book finishes with a look at GUI development and training on how to work with XML. The book takes an efficient route through the Java landscape, covering all of the core topics that a Java developer needs. Whether you’re an absolute beginner to programming, or a seasoned programmer approaching an object-oriented language for the first time, Java Programming for Beginners delivers the focused training you need to become a Java developer.
Table of Contents (12 chapters)

Getting Started with Java

Whether this is your first foray into high-level object-oriented programming languages, such as Java, or if you've been programming for some time and you're just looking to add Java to your repertoire, or even if you've never touched a line of code in your life, this book is designed to accommodate you. We're going to move quickly, and we're not going to shy away from heavy subjects; however, we're going to begin this book from the very ground up and learn about the concepts behind object-oriented programming as we go.

In this chapter, we'll understand what Java is and also look at its features. We'll then follow a step-by-step process to set up a development environment to enable us to write and execute Java programs. Once we accomplish this, we'll write our very first Java program and run it. Lastly, we'll look at what to do when we get an error.

Specifically, we'll cover the following topics:

  • What is Java
  • Features and applications of Java
  • Installing JDK
  • Installing the NetBeans IDE
  • Writing HelloWorld.java
  • NetBeans' error detection capabilities