1.

Record Nr.

UNINA9910828997203321

Autore

Greanier Todd

Titolo

Java foundations / / Todd Greanier

Pubbl/distr/stampa

San Francisco, : Sybex, c2004

ISBN

1417539941

1-280-52228-3

9786610522286

1-4175-3994-1

0-7821-5115-9

Edizione

[1st ed.]

Descrizione fisica

1 online resource (363 p.)

Disciplina

005.13/3

Soggetti

Java (Computer program language)

Object-oriented programming languages

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

Java Foundations; Front matter; Acknowledgments; Contents; Introduction; Chapter 1: The History of Java; Where Java Technology Came From; The Green Project; Enter the Web; The Features of Java Technology; Java Is Simple; Java Is Object Oriented; Java Is Interpreted; Java Is Portable; Java Is Robust; Java Is Secure; Java Is Multi-threaded; Java Is High Performance; Java Saves Time and Money; Java Solves Important Problems; How Java Compares with Other Languages; How to Download and Install Java; Downloading the J2SE Software; Terms to Know; Review Questions; Chapter 2: Java Fundamentals

Creating a Java Program The Hello World Program; Writing the Hello World Source Code; Compiling the Hello World Source Code; Executing the Hello World Program; Examining the Source Code; Using Comments; Using White Space; Defining the Class; Defining the Method; Wrapping Up the Hello World Program; Working with Arguments in the main() Method; The Basic Java Data Types; Literal Values; The Integer Types; The Floating Point Types; The Character Type; The Boolean Type; Using the Primitive Types; The String Class; Primitive Values versus Reference Values; Terms to Know; Review Questions



Chapter 3: Keywords and Operators Creating Valid Names in Java; The Keyword List; The Primitive Type Keywords; The Flow Control Keywords; Modification Keywords; Class-Related Keywords; Object-Related Keywords; Wrapping Up the Keywords; The Java Operators; The Arithmetic Operators; The Assignment Operators; The Relational Operators; The Conditional Operators; Terms to Know; Review Questions; Chapter 4: Flow Control; Application Scope; The if Statement; Adding the else Statement; Testing the Array of Arguments; The switch and case Statements; The default Statement

Deciding between if/else and switch/case Processing a Range of Values; The Ternary Operator; The for Loop; Multiple Increment Steps; Beware the Infinite Loop; The while Loop; Comparing for and while Loops; The do Statement; The Branching Statements; The break Statement; The continue Statement; The return Statement; Terms to Know; Review Questions; Chapter 5: Arrays; Understanding Arrays; Declaring Arrays; Creating Arrays; Getting the Length of an Array; Populating an Array; Using Array Initializers; An Array Initializer Variation; Accessing Array Elements; Multidimensional Arrays

Two-Dimensional Array Initializers Nonrectangular Arrays; The java.util.Arrays Class; Filling an Array; Sorting an Array; Searching an Array; Terms to Know; Review Questions; Chapter 6: Introduction to Object-Oriented Programming; The Object-Oriented Paradigm; Real-World Objects; Defining a Class; Instantiating and Using Objects; A Closer Look at a Lamp Object; Sharing a Reference; Object Messaging: Adding a Lightbulb; Passing by Value; Passing by Reference; The this Keyword; Bypassing Local Variables Using this; Passing a Reference Using this; Static Methods Have No this Reference

Constructors

Sommario/riassunto

The world of IT is always  you the strongest possible starting point, no matter what your endeavor. Java Foundations provides essential knowledge about what has arguably become the world's most important programming language. What you learn here will benefit you in the short term, as you acquire and practice