ABSTRACT

Java concepts Named constants, variables, primitive data types, and operators, String class, reference variables, literals, assignment statements, String operators, operator precedence, evaluation of mixed expressions, input/output statements

Programming skills Create, compile, execute, and test an application program

Today you went to your bank and deposited $1000.00 to your savings account. Your savings account is an object that keeps track of many closely related data items such as your account number, name, address, phone number, e-mail address, current balance, and so on. If I have a savings account in your bank, my savings account is another object that will keep track of many closely related data items such as my account number, name, address, phone number, e-mail address, current balance, and so on. In fact, anyone who has a savings account with your bank will have a similar savings account object. Recall that the formal specifi cation or the template of an object is called a class. Th us savings account is a class. Your savings account is just an instance of the savings account class. Instances are called objects and two objects are identical except for the values.