Skip to Content
Java: The Complete Reference, Eleventh Edition, 11th Edition
book

Java: The Complete Reference, Eleventh Edition, 11th Edition

by Herbert Schildt
December 2018
Intermediate to advanced
1248 pages
33h 55m
English
McGraw-Hill
Content preview from Java: The Complete Reference, Eleventh Edition, 11th Edition

CHAPTER

3

Data Types, Variables, and Arrays

This chapter examines three of Java’s most fundamental elements: data types, variables, and arrays. As with all modern programming languages, Java supports several types of data. You may use these types to declare variables and to create arrays. As you will see, Java’s approach to these items is clean, efficient, and cohesive.

Java Is a Strongly Typed Language

It is important to state at the outset that Java is a strongly typed language. Indeed, part of Java’s safety and robustness comes from this fact. Let’s see what this means. First, every variable has a type, every expression has a type, and every type is strictly defined. Second, all assignments, whether explicit or via parameter passing in method ...

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.
Start your free trial

You might also like

Java: The Complete Reference, Twelfth Edition, 12th Edition

Java: The Complete Reference, Twelfth Edition, 12th Edition

Herbert Schildt

Publisher Resources

ISBN: 9781260440249