CHAPTER 1
INTRODUCTION TO JAVA
This fast-paced chapter introduces you to an assortment of topics in Java. In many cases explanations are succinct, especially when the purpose of the purpose of the code is intuitive.
The first part of this chapter contains information about downloading Java onto your machine. You will also learn about Java data types and operators, as well as their precedence.
The second section shows you how to create, compile, and launch a Java class from the command line. You will learn how to create a “Hello World” code sample that will be extended in Chapter 2 to help you understand constructors in Java.
The third section discusses numbers, random numbers, and trigonometric functions in Java. The fourth section briefly covers ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access