Absolute Java, 6e Walter Savitch Kenrick Mock (Solutions Manual) (Download link at the end of this file) 1 / 4
Savitch, Absolute Java 6/e: Chapter 1, Instructor’s Manual
Copyright © 2016 Pearson Education Inc. All rights reserved.
Chapter 1 Getting Started
Key Terms intermediate language byte-code code OOP object method class application program applet applet viewer println System.out.println invoking dot argument sending a message variable int equal sign assignment operator high-level language low-level language machine language compiler byte-code Java Virtual Machine interpreter run command source code object code code .java files javac .class files running a Java program bug debugging syntax error run-time error logic error identifier case-sensitive 2 / 4
Savitch, Absolute Java 6/e: Chapter 1, Instructor’s Manual
Copyright © 2016 Pearson Education Inc. All rights reserved.
keyword declare floating-point number primitive type assignment statement assignment operator uninitialized variable assigning int values to double values integers booleans literals, constants e notation quotes mixing types integer division % operator type coercion v++ versus ++v decrement operator String
- operator
concatenation class object method method call method invocation argument sending a message length position index backslash escape sequence immutable object ASCII Unicode // comments line comments /*comments*/ block comments when to comment self-documenting
- / 4
Savitch, Absolute Java 6/e: Chapter 1, Instructor’s Manual
Copyright © 2016 Pearson Education Inc. All rights reserved.
Brief Outline 1.1 Introduction to Java Origins of the Java Language Objects and Methods Applets A Sample Java Application Program Byte-Code and the Java Virtual Machine Class Loader Compiling a Java Program or Class Running a Java Program 1.2 Expressions and Assignment Statements Identifiers Variables Assignment Statements More Assignment Statements Assignment Compatibility Constants Arithmetic Operators and Expressions Parentheses and Precedence Rules Integer and Floating-Point Division Type Casting Increment and Decrement Operators 1.3 The Class String String Constants and Variables Concatenation of Strings Classes String Methods Escape Sequences String Processing The Unicode Character Set 1.4 Program Style Naming Constants Java Spelling Conventions Comments Indenting
Teaching Suggestions This chapter introduces the students to the history of the Java language and begins to tell them about what types of programs can be written in Java as well as the basic structure of a Java program. During the discussions on compilation and running a program, care should be taken to explain the process on the particular computer system that the students will be using, as different computing/development environments will each have their own specific directions that will need to be followed. What is especially important to note is that the basic unit of programming in Java is a class – every Java program is a class.
- / 4