Java Reference
In-Depth Information
Figure 2-5.
D. In the Employee example, the first Employee statement executed is String empName = new String(); . This is
another assignment statement so the code on the right of the equal sign ( new String() ) is executed first. This creates
another String object (represented by the third rounded corner rectangle in Figure 2-6 ) with no text.
 
Search WWH ::




Custom Search