© Adam L. Davis 2020
A. L. DavisModern Programming Made Easyhttps://doi.org/10.1007/978-1-4842-5569-8_3

3. The Basics

Adam L. Davis1 
(1)
Oviedo, FL, USA
 

In this chapter, we’ll cover the basic syntax of Java and similar languages.

Coding Terms

Source file refers to human-readable code. Binary file refers to computer-readable code (the compiled code). In Java, this binary code is called bytecode which is read by the Java Virtual Machine (JVM) .

In Java, the source files end with .java, and binary files end with .class (also called class files). You compile source files using a compiler, which gives you binary files or bytecode.

In Java, the compiler is called javac; in Groovy it is groovyc; and it is scalac in Scala (see a trend here?). All three of these ...

Get Modern Programming Made Easy: Using Java, Scala, Groovy, and JavaScript 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.