Java Reference
In-Depth Information
Figure 2-8.
G. Then the Employee constructor (i.e., the Employee method) is executed. The Employee method header
creates a new
String
variable called name. The computer (i.e., the JRE) then assigns the
String
object with the text
“Joe Employee” that was passed by EmployeeApp to this new
String
variable called name (see Figure
2-9
).