Java Reference
In-Depth Information
Figure 2-9.
H. The Employee constructor then assigns the String object that is assigned to name (i.e., the “Joe Employee”
String object) to empName ( empName = name; ) See Figure 2-10 . Notice that the original empty String object,
created and assigned to empName (on line 5), still exists but is no longer assigned to any variable.
Search WWH ::




Custom Search