2001Fall

Outprintlnmethod i in i overridden i10 override

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: tStream   !DataOutputStream 1     "("(   1 (  !DataOutputStream   (   1     !DataOutputStream"  (  "   ("    "  !DataOutputStream  "         , 6   0          "   "          (    *"((  Employee  7    #    8RaiseSalary8 Manager    " #"     6   # ... Manager boss = new Manager(); Employee john = new Employee(); Employee staff = new Employee[2]; staff[0] = boss; staff[1] = john; staff[0].RaiseSalary(); (*) staff[1].RaiseSalary(); (**)        9::: Employee'sRaiseSalary "      Employee 9::: Manager's RaiseSalary : Employee'sRaiseSalary#":: Manager's : Manager'sRaiseSalary#":: Employee's   !    (       "    java Mystery Mighty Mouse class Mystery { public static void main(String args) { Changer c = new Changer(); c.method(args); System.out.println(args[0] + " " + args[1]); } static class Changer { void method(String s) { String temp = s[0]; s[0] = s[1]; s[1] = temp; } } }        % (  " ArrayIndexOutOfBoundsException    % (   " "       "(" % (    8; ;" 8   "(" % (    8;" ; 8   "(" ...
View Full Document

This document was uploaded on 03/11/2014.

Ask a homework question - tutors are online