Chapter 1 ▪ Fundamental Programming Structures
In this chapter, you will learn about the basic data types and control structures of the Java language. I assume that you are an experienced programmer in some other language and that you are familiar with concepts such as variables, loops, function calls, and arrays, but perhaps with a different syntax. This chapter will get you up to speed on the Java way. I will also give you some tips on the most useful parts of the Java API for manipulating common data types.
The key points of this chapter are:
-
In Java, methods are declared in a class. You invoke a non-static method on an object of the class to which the method belongs.
-
Static methods are not invoked on objects. Program execution starts ...
Get Core Java for the Impatient, 4th Edition 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.