O'Reilly logo

Technical Java™: Developing Scientific and Engineering Applications by Grant Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Basic Syntax

Java is a powerful, versatile, object-oriented programming language with a variety of structured elements. As a Java programmer you will be working with classes, methods, interfaces, constructors, variables, exception handling, and more. But before we cover those elements, we need to discuss the basic syntax that is common to all Java programming constructs. This chapter will cover the important elements of basic Java syntax. Specifically we will discuss—

  • General Java syntax and a simple Java program

  • Comments

  • Operators

  • Loops and other flow of control structures

  • Transfer of control statements

  • Basic printing and keyboard I/O

General Syntax and a Simple Java Program

Java is based on C and C++ and much of its basic syntax is similar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required