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 ...
Get Technical Java™: Developing Scientific and Engineering Applications 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.